Timer

sealed class Timer

A simple timer for timing, and the time unit of it is logic frames.

Author

KKoishi_

Inheritors

Types

Link copied to clipboard
class Default(time: Long) : Timer
Link copied to clipboard
class Delayed(time: Long, delay: Long) : Timer
Link copied to clipboard
class Loop(interval: Long) : Timer

Functions

Link copied to clipboard
fun cur(): Long
Link copied to clipboard
open fun end(): Boolean

If the timer is ended.

Link copied to clipboard
fun time(): Long