From: Kevin W. <kev...@in...> - 2010-07-05 16:42:54
|
Hi all, I have noticed that gcc4cli declares time_t as an 'unsigned long'. The GNU C lib declares it as 'signed long'. This difference causes getimeofday to report incorrect numbers when using the common function..... double time = (endTime.tv_sec - startTime.tv_sec) + ( (endTime.tv_usec - startTime.tv_usec) / 1.e6); was time_t declared as unsigned long for a reason? If not can we change it to signed? Thanks, Kevin |