go-waku/waku/v2/utils/time.go

8 lines
124 B
Go
Raw Normal View History

2021-10-12 13:12:54 +00:00
package utils
import "time"
func GetUnixEpoch() float64 {
return float64(time.Now().UnixNano()) / float64(time.Second)
}