指定定时器的计时和行为。
播放设置属性直接定义在 createTimer() 参数的 Object(对象)中。
createTimer({
┌───────────────────┐
│ duration: 1000, │
│ frameRate: true, ├─ Playback Settings
│ loop: true, │
└───────────────────┘
onBegin: () => {},
onLoop: () => {},
onUpdate: () => {},
});