Timer

trait Timer

a timer tracks the amount of time passed since the start, can also be a countdown when maxTime is set, returning the remaining time and if is expired attention: stopping the timer doesn't interfere with its expiration

Companion:
object
class Object
trait Matchable
class Any
class TimerImpl

Value members

Abstract methods

def getRemainingTime: Double
def getTime: Double
def isExpired: Boolean
def isStopped: Boolean
def startTimer(): Unit
def stopTimer(): Unit

Concrete methods

Abstract fields

val maxTime: Long