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:40 -0700, Trent Gamblin wrote:
> On Thu, December 27, 2007 5:44 am, Elias Pschernig said:
> > Should we change
> >
> > unsigned long al_current_time(void)
> > void al_rest(long msecs)
> >
> > to
> >
> > double al_current_time(void)
> > void al_rest(double seconds)
> 
> I really like al_current_time as it is now, but if we change it I'll
> simply replace it with my own function like I've been doing before
> 4.9.
> 

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>





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