Simple timing

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Nov 17 08:28:57 PST 2014


The easiest way isn't to read the clock at all and instead just 
put your program to sleep for a while:

void main() {
     import std.stdio;
     import core.thread;
     writeln("started");
     Thread.sleep(3500.msecs);
     writeln("ended");
}


More information about the Digitalmars-d-learn mailing list