hey,

I did that code for gettimeofday() for mingw32ce:

> +   milli_sec = (int)GetTickCount() - _evil_time_millisecond;
> +   tp->tv_sec = _evil_time_second + milli_sec / 1000;
> +   tp->tv_usec = (milli_sec % 1000) * 1000;

would it be better that I write the following:

if (milli_sec < 1000)
{
    tp->tv_sec = _evil_time_second + milli_sec;
    tp->tv_usec = milli_sec * 1000;
}
else
{
    tp->tv_sec = _evil_time_second + milli_sec / 1000;
    tp->tv_usec = (milli_sec % 1000) * 1000;
}


?

If think that it is maybe interesting as gettimeofday() is mainly used in 
ecore for the ecore_timer and ecore_animator, which should be called more 
often that every 1s.

Vincent

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to