|
@@ -8,7 +8,6 @@ class t {
|
|
|
constructor(){
|
|
|
this.ms = 0;
|
|
|
this.timer = null;
|
|
|
-
|
|
|
}
|
|
|
init(){
|
|
|
this.ms = 0;
|
|
@@ -64,7 +63,7 @@ class t {
|
|
|
console.log('已经暂停');
|
|
|
return false;
|
|
|
}
|
|
|
- this.ms +=1;
|
|
|
+ this.ms += timeGap;
|
|
|
this.lastTime = nowTimeStamp;
|
|
|
// 触发hook
|
|
|
this._reFreshHook(this.ms);
|
|
@@ -75,9 +74,9 @@ class t {
|
|
|
}
|
|
|
parse(msNum){
|
|
|
// 60:60:100
|
|
|
- let time_minute = Math.floor(msNum/100/60);
|
|
|
- let time_ms = msNum%100;
|
|
|
- let time_second = Math.floor((msNum/100)%60);
|
|
|
+ let time_minute = Math.floor(msNum/1000/60);
|
|
|
+ let time_second = Math.floor((msNum/1000)%60);
|
|
|
+ let time_ms = msNum%1000;
|
|
|
return {
|
|
|
minute:time_minute,
|
|
|
second: time_second,
|