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

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


On 2007-12-28, Victor <vwss1984@xxxxxxxxxx> wrote:
> IMHO the better definition of "current time" is not a long, fixed, int or double. It is some sort of structure containing day, month, year, hour, minute, second and milli-micro-or-nanoseconds.
> To measure the amount of time betewwen two different times, some helper functions can do it easily.

Calendar time is pretty useless for most game situations (and there are
standard C functions for that, albeit only with second granularity).
What most games need is the interval between two points in time, e.g.
between two frames, in a single unit if possible.

Peter





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