time measurement under linux?

Steven Schveighoffer schveiguy at yahoo.com
Mon Jan 19 08:17:33 PST 2009


"Trass3r" wrote
>I wrote a module to ease time measurement in my projects.
> Does anyone know how to get elapsed milli- or nanoseconds under linux? 
> Want to make it portable :)

Tango uses gettimeofday, which has microsecond resolution.

See tango.time.StopWatch for functionality similar to your code.

-Steve 




More information about the Digitalmars-d-learn mailing list