mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-01 14:28:58 -07:00
(minor) self call to NowUnixNano in TimeCache for Now
This commit is contained in:
@@ -71,7 +71,7 @@ func (t *TimeCache) Stop() {
|
||||
|
||||
// Now returns the cached time as a time.Time value.
|
||||
func (t *TimeCache) Now() time.Time {
|
||||
return time.Unix(0, t.clock.Load())
|
||||
return time.Unix(0, t.NowUnixNano())
|
||||
}
|
||||
|
||||
// NowUnixNano returns the cached time as nanoseconds since the Unix Epoch.
|
||||
|
||||
Reference in New Issue
Block a user