time measurement under linux?

Trass3r mrmocool at gmx.de
Mon Jan 19 13:04:16 PST 2009


Jarrett Billingsley schrieb:
> 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..)

HighPerformanceCounter only exists in phobos1 and seems to be redundant 
anyway (as you said, uses same mechanism).


More information about the Digitalmars-d-learn mailing list