html5 的 canvas 写东西,大部分都是实时刷新,也就是每秒钟都要把所有元素重绘 60 次, 楼主会不会觉得 cpu 都要炸了?
ytpfxnj
2017-11-03 17:08:05 +08:00
``` /** * @return the total amount of time remaining up to this moment; expired timers will return a * negative amount */ public long getRemainingTime() { if (mState == RUNNING || mState == EXPIRED) { return mRemainingTime - (now() - mLastStartTime); }