struct timeval now;
if (gettimeofday (&now, NULL))
return 0;
return (now.tv_sec + static_cast<double>(now.tv_usec) / 1000000.);
struct timeval now;
if (gettimeofday (&now, NULL))
return 0;
return (now.tv_sec + static_cast<double>(now.tv_usec) / 1000000.);