package
0.0.0-20241203191923-87858b745089
Repository: https://github.com/tarsoqueiroz/aboutgo.git
Documentation: pkg.go.dev
# README
Go time and its two clocks
https://dev.to/jingshao_chen_02a2352f476/go-time-and-its-two-clocks-3p0p
Time lapse
To calculate the time lapse in Go, you can use
start := time.Now()
// long time consuming task
duration := time.Since(start)
Complete sample run:
go mod init timelapse
touch main.go
go run main.go