go
// Pop quiz: what time was it?
// By Dave Cheney, https://dave.cheney.net/2025/12/18/pop-quiz-what-time-was-it
// (CC BY-NC-SA 4.0)
//
// Will the two timestamps be:
// a) roughly the same
// b) roughly 10 seconds apart
// c) something else
//
// Make your guess, then run it: open the terminal (Ctrl + `) and type `go run quiz.go`.
package main
import (
"fmt"
"time"
)
func main() {
fmt.Println(time.Now())
defer fmt.Println(time.Now())
time.Sleep(10 * time.Second)
}