From 2f3fa9acff3eb7cacbb590446eb9d5546a8a43ca Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Tue, 24 Feb 2015 17:04:22 -0800 Subject: [PATCH] Fix linux compile bug --- test/cpp/qps/timer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cpp/qps/timer.cc b/test/cpp/qps/timer.cc index ff21f1a3778..5a5be97071b 100644 --- a/test/cpp/qps/timer.cc +++ b/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; -} \ No newline at end of file +}