time measurement under linux?

Jarrett Billingsley jarrett.billingsley at gmail.com
Mon Jan 19 07:52:52 PST 2009


On Mon, Jan 19, 2009 at 10:41 AM, Daniel Keep
<daniel.keep.lists at gmail.com> wrote:
> 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 :)
>> [snip]
>
> Check std.perf; it's documented, but sadly doesn't show up in the docs.

Namely, PerformanceCounter is crossplatform.  (For some reason,
HighPerformanceCounter only works on Windows, even though it uses the
same mechanism as PerformanceCounter..)


More information about the Digitalmars-d-learn mailing list