mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-03 09:14:01 +00:00
perf[zfoo]: stop watch优化
This commit is contained in:
1 parent
2b373e87bb
commit
c6630c4200
1 file changed
+5
-1
@@ -27,7 +27,11 @@ public class StopWatch {
|
||||
}
|
||||
|
||||
public float costSecond() {
|
||||
return (TimeUtils.currentTimeMillis() - startTime) / 1000F;
|
||||
return (TimeUtils.currentTimeMillis() - startTime) / (float) TimeUtils.MILLIS_PER_SECOND;
|
||||
}
|
||||
|
||||
public float costMinute() {
|
||||
return (TimeUtils.currentTimeMillis() - startTime) / (float) TimeUtils.MILLIS_PER_MINUTE;
|
||||
}
|
||||
|
||||
public long getStartTime() {
|
||||
|
||||
Reference in new issue
Block a user