Original Post
double Platform::GetSystemTime(void)
{
static timeval currentTime;
// Get the current time..
gettimeofday(¤tTime, 0);
return (double)(currentTime.tv_sec) + ((double)(currentTime.tv_usec) * 0.000001);
}
The function returns the same value at all times..can anyone offer a fix or a better way for high-resolution timing on *nix platforms?