void main() { import std.datetime: Duration, msecs; import std.datetime.stopwatch: StopWatch;
StopWatch sw; if (sw.peek.msecs) { } } I get this error with the code:z.d(6): Error: function core.time.dur!"msecs".dur (long length) is not callable using argument types (Duration)