StopWatch problem

Joel joelcnz at gmail.com
Tue Dec 5 21:33:53 UTC 2017


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)


More information about the Digitalmars-d-learn mailing list