News for hackers. Stuff that matters.
Re:US Senate votes unanimously to make daylight savings time... by alophawen on Wednesday March 16, 2022 @06:38AM (#30697201)
Measuring elapsed time in golang is as easy as:

    start := time.Now()
    // Code to measure
    duration := time.Since(start)
See the docs for a good write-up: https://pkg.go.dev/time#hdr-Monotonic_Clocks

In rust you use https://doc.rust-lang.org/std/time/struct.Instant.html

There are no comments on this comment yet.