mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-17 00:26:36 +03:00
14 lines
260 B
Go
14 lines
260 B
Go
//go:build synctest
|
|
|
|
package fasttime
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// UnixTimestamp returns the current unix timestamp in seconds.
|
|
func UnixTimestamp() uint64 {
|
|
// Fall back to time.Now().Unix(), since this is needed for synctest.
|
|
return uint64(time.Now().Unix())
|
|
}
|