[Issue 15502] Error: function core.time.dur!"nsecs".dur (long length) is not callable using argument types (MonoTimeImpl!cast(ClockType)0)
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Jan 2 18:37:58 PST 2016
https://issues.dlang.org/show_bug.cgi?id=15502
--- Comment #1 from Timothee Cour <timothee.cour2 at gmail.com> ---
EDIT:
i forgot to add 'import std.datetime;' inside version(B):
dmd -version=B -c -o- main.d
Error: function core.time.dur!"nsecs".dur (long length) is not callable using
argument types (MonoTimeImpl!cast(ClockType)0)
---
void test() {
version(A){
import std.datetime;
auto temp=Clock.currSystemTick().nsecs() * 1e-9;
}
version(B){
import std.datetime;
static import core.time;
auto temp=core.time.MonoTime.currTime.nsecs * 1e-9;
}
}
---
--
More information about the Digitalmars-d-bugs
mailing list