How do I add a digital clock to lvgl

Description

I am trying to create a digital clock in LVGL.

What MCU/Processor/Board and compiler are you using?

LVGL simulator on VScode.

What LVGL version are you using?

v8.0

What do you want to achieve?

I would like to create a digital clock with adjustable time settings.

What have you tried so far?

I have tried creating a digital clock by creating a label that will be updated every second by using simple loops to update the time. However, I would like to see if there is a more elegant solution or if there is an example that I could use instead.