Skip to content

Instantly share code, notes, and snippets.

@tangx
Created Nov 11, 2019
Embed
What would you like to do?
time 的常用用法
func Test_time(t *testing.T) {
start := time.Now()
time.Sleep(1 * time.Second)
sec := time.Since(start).Seconds()
fmt.Println(sec)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment