[phobos] Proposal of StopWatch module

Steve Schveighoffer schveiguy at yahoo.com
Tue Aug 17 05:31:35 PDT 2010


thanks, I missed that.

Sorry for the noise, SHOO.

-Steve



----- Original Message ----
> From: Lars Tandle Kyllingstad <lars at kyllingen.net>
> To: Discuss the phobos library for D <phobos at puremagic.com>
> Sent: Tue, August 17, 2010 8:17:04 AM
> Subject: Re: [phobos] Proposal of StopWatch module
> 
> Near the bottom of SHOOs e-mail, he does explicitly say he didn't look
> at  Tango.
> 
> I see no reason not to trust that, similar APIs  notwithstanding.  There
> really aren't that many ways to make a sensible  stopwatch API -- you
> need a start(), a stop(), and some way to extract the  time inbetween in
> various units.  std.perf.PerformanceCounter looks like  that too.
> 
> -Lars
> 
> 
> 
> On Tue, 2010-08-17 at 05:05 -0700, Steve  Schveighoffer wrote:
> > in anticipation of what might happen...
> > 
> > Tango does have a StopWatch object, it looks like this (API  only):
> > 
> > void start()
> > Start the timer
> > double  stop()
> > Stop the timer and return elapsed duration since start()
> >  ulong microsec()
> > Return elapsed time since the last start() as  microseconds
> > static this()
> > Setup timing information for later  use
> > ulong timer() [private, static]
> > Return the current time as  an IntervalI hate to do this, but I don't want to 
>
> > incur any more issues  from the Tango team.  Have you looked at this tango 
>module 
>
> > before  writing your StopWatch object (note the StopWatch module is separate 
>from 
>
> > the other tango modules)?
> > 
> > -Steve
> > 
> > 
> > 
> > ----- Original Message ----
> > > From: SHOO <zan77137 at nifty.com>
> > > To: phobos at puremagic.com
> > > Sent:  Tue, August 17, 2010 6:43:41 AM
> > > Subject: [phobos] Proposal of  StopWatch module
> > > 
> > > I made the module of the stopwatch,  so I suggest it again here.
> > > 
> > > I  suggested a time  handling module that I called std.time before.
> > > Unfortunately   itself was not able to contribute to Phobos for the issue
> > > of  license. But, an  important function was included in it. It is what  
is
> > > the StopWatch suggested  this time.
> > > 
> >  > I have some knowledge about machine control engineering. In  the field  
of
> > > the machine control engineering, the high accuracy time   measurement
> > > often plays an important role.
> > > For  example, the case wants to  perform the measurement of the voltage
> >  > with time by millisecond order for  feedback control. When it looks  like
> > > it, resolution power is not enough by  time acquisition  such as C's time
> > > function in many cases.
> > > 
> > >  Or the high  accuracy time measurement is important in the game
> >  > programming, too. Or in  benchmark testing, too.
> > > 
> >  > There is std.perf in Phobos as a module with this  role now.
> >  > However, the module is unlisted, and a license doesn't seem to be   a
> > > Boost license, too.
> > > I did not refer Tango at all  about this class and  examined and made it
> > > in my own hand  completely.
> > > 
> > > Here is the module to  suggest this  time:
> > >     http://ideone.com/TVw1P
> > > 
> >  > # This module  is tested by Windows (real) and Ubuntu (virtual  PC).
> > > 
> > > Please look at it  once by all means, and  review it.
> > > I think that I will commit it at  2010-08-22T15:00Z  as far as there is
> > > not serious dissenting  opinion.
> >  > _______________________________________________
> > > phobos  mailing  list
> > > phobos at puremagic.com
> > >  http://lists.puremagic.com/mailman/listinfo/phobos
> > > 
> > 
> > 
> >      
> >  _______________________________________________
> > phobos mailing  list
> > phobos at puremagic.com
> > http://lists.puremagic.com/mailman/listinfo/phobos
> 
> 
> _______________________________________________
> phobos  mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
> 


      


More information about the phobos mailing list