TimeKeeper 时间记录
Class to record and reset relative time. 用于记录精准相对时间的部件
constructor (clocksource:Function = Date.now)
Construct an instance of TimeKeeper
using clocksource
to provide absolute
time (defaults to the current UNIX timestamp in ms).
创建 TimeKeeper
实例,其中clocksource
由于提供绝对时间。默认采用 UNIX 时间戳
(毫秒精度)。