Unix Programming - size of suseconds_t

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > April 2006 > size of suseconds_t





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author size of suseconds_t
edware

2006-04-27, 7:56 am

I'm having some problems with gettimeofday() and suseconds_t.
It seems like that the microseconds counter is overflowing
when I call gettimeofday() repeatedly. And it doesn't seem
so strange, because sizeof(suseconds_t) yields 4. Isn't 4 bytes
too few to store the number of microseconds since the Epoch?

So my question is why it's only 4 bytes.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com