How to add a clock api to my extension?

How to add a clock api to my extension?

I searched if you can show with codes but I haven’t found much

thank you

FIKIR_KUMESI