mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-09 15:12:26 +08:00
fix: fix some go line issue in go report card
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user