Re: [AD] use double for al_current_time and al_rest?

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Thu, 2007-12-27 at 12:46 -0700, Trent Gamblin wrote:
> On Thu, December 27, 2007 12:43 pm, Elias Pschernig said:
> > You mean like this?
> >
> > unsigned long my_current_time(void) {return al_current_time() *
> > 1000;}
> >
> > What would be the advantage of doing that?
> >
> > --
> > Elias Pschernig <elias@xxxxxxxxxx>
> 
> No, I would replace it with something with millisecond accuracy.
> Using doubles would be fine to me, but having only accuracy to the
> second is not good enough.
> 

It would have millisecond accuracy.. in fact if you multiply with
1000000 or 1000000000 instead of 1000 even microsecond or nanosecond
accuracy.

-- 
Elias Pschernig <elias@xxxxxxxxxx>





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/