Fix linux compile bug

changes/20/217520/1
Craig Tiller 10 years ago
parent 353d96ab26
commit 2f3fa9acff
  1. 4
      test/cpp/qps/timer.cc

@ -45,7 +45,7 @@ static double time_double(struct timeval* tv) {
Timer::Result Timer::Sample() {
struct rusage usage;
struct timeval tv;
gettimeofday(&tv, NULL);
gettimeofday(&tv, nullptr);
getrusage(RUSAGE_SELF, &usage);
Result r;
@ -62,4 +62,4 @@ Timer::Result Timer::Mark() {
r.user = s.user - start_.user;
r.system = s.system - start_.system;
return r;
}
}

Loading…
Cancel
Save