src/worker.cc
// Return the time in microseconds.
Return the time in microseconds.
Return the time in microseconds .
int64 DiskThread::GetTime() {
  struct timeval tv;
  gettimeofday(&tv, NULL);
  return tv.tv_sec * 1000000 + tv.tv_usec;
}
int64 DiskThread :: GetTime ( ) { struct timeval tv ; gettimeofday ( & tv , NULL ) ; return tv . tv_sec * 1000000 + tv . tv_usec ; }
Return the time in microseconds.
Return the time in microseconds .