โฑ๏ธtime & sync WorkshopWORKSHOP
1
2
3
4
Step 1
Measure elapsed time. Record `time.Now()` before calling a `doWork` function that sleeps 100 ms, then print the elapsed duration with `time.Since`.
โ Enter (Mac) ยท Ctrl+Enter (Win/Linux)
Step 1
Measure elapsed time. Record `time.Now()` before calling a `doWork` function that sleeps 100 ms, then print the elapsed duration with `time.Since`.