Time some code using Tango

Jarrett Billingsley jarrett.billingsley at gmail.com
Tue Feb 3 16:07:52 PST 2009


On Tue, Feb 3, 2009 at 5:54 PM, Matthias Walter
<walter at mail.math.uni-magdeburg.de> wrote:
> Hi there,
>
> I'd like to time some functions using Tango, but only including the really used CPU-time. StopWatch and the other time functions I've found don't mind on the CPU usage, which means if I time multiple processes at once which share a single CPU, their times increase...
>
> Best regards
> Matthias Walter
>

That's something that the OS could do for you, like the "timex"
command on unix.  There's probably something magical in /proc/ that
you can use.  I have no idea what the corresponding functionality
would be in Windows, but it probably has something.


More information about the Digitalmars-d-learn mailing list