fix: fix some go line issue in go report card

This commit is contained in:
dudaodong committed 2022-01-03 14:57:14 +08:00
1 parent 9266d99249
commit 7a9b0847f9
4 files changed
+12 -13

No files matched your search

+1 -2
View File
@@ -25,9 +25,8 @@ func (w *Watcher) Stop() {
func (w *Watcher) GetElapsedTime() time.Duration {
if w.excuting {
return time.Duration(time.Now().UnixNano() - w.startTime)
} else {
return time.Duration(w.stopTime - w.startTime)
}
return time.Duration(w.stopTime - w.startTime)
}
// Reset the watch timer.