14 tstruct = *localtime(&now);
17 strftime(buf,
sizeof(buf),
"%Y-%m-%d-%X", &tstruct);
26 gettimeofday(&tv, NULL);
28 unsigned long long ret = tv.tv_usec;
31 ret += (tv.tv_sec * 1000 * 1000);
38 return (
double) (stop - start) / 1000.0;
unsigned long long getTime()
Get system time.
std::string currentDateTime()
Get current data time.
double getInterval(unsigned long long start, unsigned long long stop)
Calculate time interval from start to end.
Functions about getting system time.