Performance Counter output
Oskar Linde
oskar.lindeREM at OVEgmail.com
Thu Jul 12 00:32:12 PDT 2007
ginophi skrev:
> I'm trying to see how long a particular part of code takes to run, but the
> counter gives me strange outputs.
>
> PerformanceCounter c = new PerformanceCounter();
> c.start();
>
> // some code
>
> c.stop();
>
> writefln("Seconds: %x",c.seconds());
> writefln("Milliseconds: %x",c.milliseconds());
> writefln("Microseconds: %x",c.microseconds());
>
>
> gives me for example this:
>
> Seconds: 2
> Milliseconds: af2
> Microseconds: 2ac3c2
>
> What am I missing?
change %x -> %s
--
Oskar
More information about the Digitalmars-d-learn
mailing list