Skip to content

Instantly share code, notes, and snippets.

@sthorne
Created February 26, 2015 17:38
Show Gist options
  • Save sthorne/db368c3c57b94aab5756 to your computer and use it in GitHub Desktop.
Save sthorne/db368c3c57b94aab5756 to your computer and use it in GitHub Desktop.
Go - Time Duration
package main
import "fmt"
import "time"
func main() {
t := time.Now()
time.Sleep(10 * time.Millisecond)
fmt.Println(time.Since(t).String())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment