Import std.time.clock
Measure
function
Public Function Measure(work: Func()): Duration
How long the work takes, on the monotonic clock.
Examples
Local nap = Function()
Sleep(2.Milliseconds)
End Function
Expect(Measure(nap) >= 2.Milliseconds)Report an issue with this page or with FutureBlitz on GitHub.