Creating timer in Kotlin

Can someone help me to create timer like CountDownTimer in Kotlin? Which one is best way of timing between ticker and Timer?

1 Like

I’d say Timer my friend

1 Like

Thanks. Can I condition it?

Well you can send the instructions you want to execute inside that higher order function the extension function accepts. I’d suggest you to create a method just to do that and then pass such method instead of sending all instructions inside the lambda it accepts. I find it to be more organized. But it is up to You. I hope I have helped :slightly_smiling_face:

1 Like

Thanks for the advice. You helped me.

1 Like

Glad to do so my Friend :+1: