commit | 2f3fa9acff3eb7cacbb590446eb9d5546a8a43ca | [log] [tgz] |
---|---|---|
author | Craig Tiller <craig.tiller@gmail.com> | Tue Feb 24 17:04:22 2015 -0800 |
committer | Craig Tiller <craig.tiller@gmail.com> | Tue Feb 24 17:04:22 2015 -0800 |
tree | 5f4803505c84aa827b90b6240b625e321b7d1119 | |
parent | 353d96ab263403fea4a6e6bca1fa177a7d145979 [diff] [blame] |
Fix linux compile bug
diff --git a/test/cpp/qps/timer.cc b/test/cpp/qps/timer.cc index ff21f1a..5a5be97 100644 --- a/test/cpp/qps/timer.cc +++ b/test/cpp/qps/timer.cc
@@ -45,7 +45,7 @@ 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 @@ r.user = s.user - start_.user; r.system = s.system - start_.system; return r; -} \ No newline at end of file +}