github.com/go-eden/common@v0.1.15-0.20210617133546-059099253264/etime/demo/now.go (about)

     1  package main
     2  
     3  import (
     4  	"github.com/go-eden/common/etime"
     5  	"time"
     6  )
     7  
     8  func main() {
     9  	println(etime.NowSecond())
    10  	println(etime.NowMillisecond())
    11  	println(etime.NowMicrosecond())
    12  
    13  	println(time.Now().Unix())
    14  	println(time.Now().UnixNano() / 1e6)
    15  	println(time.Now().UnixNano() / 1e3)
    16  }