Re: time measurement under linux?

2009-01-19 Thread Bill Baxter
On Tue, Jan 20, 2009 at 6:04 AM, Trass3r wrote: > Jarrett Billingsley schrieb: >> >> On Mon, Jan 19, 2009 at 10:41 AM, Daniel Keep >> wrote: >>> >>> Trass3r wrote: I wrote a module to ease time measurement in my projects. Does anyone know how to get elapsed milli- or nanoseconds un

Re: time measurement under linux?

2009-01-19 Thread Trass3r
Jarrett Billingsley schrieb: On Mon, Jan 19, 2009 at 10:41 AM, Daniel Keep 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,

Re: time measurement under linux?

2009-01-19 Thread Jarrett Billingsley
On Mon, Jan 19, 2009 at 10:41 AM, Daniel Keep 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

Re: time measurement under linux?

2009-01-19 Thread Bill Baxter
On Tue, Jan 20, 2009 at 4:47 AM, Jarrett Billingsley wrote: > On Mon, Jan 19, 2009 at 1:46 PM, Jason House > 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 por

Re: time measurement under linux?

2009-01-19 Thread Jarrett Billingsley
On Mon, Jan 19, 2009 at 1:46 PM, Jason House 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 :) > > The difficulty of doing platform independent timing is on

Re: time measurement under linux?

2009-01-19 Thread Bill Baxter
On Tue, Jan 20, 2009 at 2:19 AM, Trass3r wrote: > Daniel Keep schrieb: >> >> Check std.perf; it's documented, but sadly doesn't show up in the docs. >> >> -- Daniel > > Cool, is similar to my design. Though GetTickCount64 could be added. That's odd. I made some updates to std.perf a while back

Re: time measurement under linux?

2009-01-19 Thread Jason House
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 :) The difficulty of doing platform independent timing is one of the many reasons that drove me to Tango... > > > >

Re: time measurement under linux?

2009-01-19 Thread Trass3r
Daniel Keep schrieb: Check std.perf; it's documented, but sadly doesn't show up in the docs. -- Daniel Cool, is similar to my design. Though GetTickCount64 could be added.

Re: time measurement under linux?

2009-01-19 Thread Steven Schveighoffer
"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

Re: time measurement under linux?

2009-01-19 Thread Daniel Keep
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. -- Daniel

time measurement under linux?

2009-01-19 Thread Trass3r
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 :) module time; version(Windows) import std.c.windows.windows; long frequency; /// frequency of the high perform