โฑ๏ธ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`.
Ctrl+Enter to run
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`.