@ file : Opt In ( Experimental Time :: class ) Ċ Ċ package Ġorg . kotlin mc . bukkit . utils Ċ Ċ import Ġkotlin . time .* Ċ Ċ fun Ġnow (): ĠLong Ġ= ĠSystem . currentTimeMillis () Ċ fun Ġnow Nano (): ĠLong Ġ= ĠSystem . nano Time () Ċ Ċ val ĠLong . ticks : ĠDuration Ġget () Ġ= Ġto Double (). ticks Ċ val ĠInt . ticks : ĠDuration Ġget () Ġ= Ġto Double (). ticks Ċ val ĠDouble . ticks : ĠDuration Ġget () Ġ= ĠDuration . milliseconds ( tick To Milliseconds ( this )) Ċ Ċ val ĠDuration . in Ticks : ĠDouble Ġget () Ġ= Ġmilliseconds To Tick ( toDouble ( Duration Unit . MILLISECONDS )) Ċ Ċ fun ĠDuration . to Long Ticks (): ĠLong Ġ= Ġin Ticks . to Long () Ċ Ċ private Ġfun Ġtick To Milliseconds ( value : ĠDouble ): ĠDouble Ġ= Ġvalue Ġ* Ġ 5 0 . 0 Ċ private Ġfun Ġmilliseconds To Tick ( value : ĠDouble ): ĠDouble Ġ= Ġvalue Ġ/ Ġ 5 0 . 0