Joel Morgan wrote:
> I have difftime() working under TS-Linux on a 7260. The timing seems to
> be off a little but I haven't investigated it yet.
> Gnu libc manual says
> that time_t is just a double and you can subtract your two values.
> difftime() is supposed to the be more portable though.
I wrote my own:
----------
double my_difftime (time_t t1, time_t t0)
{
return (double)(t1) - (double)(t0);
}
----------
This works perfectly. I could have implemented it as a macro, but what
the heck....
Strangely, when I added it to my test program, the regular difftime()
began to work! Maybe he timing issue you mentioned is in play.
I'll stick with my function. :-)
--
Mike
Mike Dodd
Louisa County, VA USA
http://mdodd.com
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|