diff options
author | 2016-02-24 12:36:15 -0800 | |
---|---|---|
committer | 2016-02-24 12:36:15 -0800 | |
commit | e2d39e08f9d65b89b0e0f842bc8b8431022f1435 (patch) | |
tree | ecf548b19d1a336080d86a616c25a99ad7342939 /test/cpp/qps/server.h | |
parent | 633f7c27616314c2b1cb4cd30704f0cc8bdb1dca (diff) |
Timer->UsageTimer consistently
Diffstat (limited to 'test/cpp/qps/server.h')
-rw-r--r-- | test/cpp/qps/server.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/cpp/qps/server.h b/test/cpp/qps/server.h index 3227347e3f..de46452c3d 100644 --- a/test/cpp/qps/server.h +++ b/test/cpp/qps/server.h @@ -50,7 +50,7 @@ namespace testing { class Server { public: - explicit Server(const ServerConfig& config) : timer_(new Timer) { + explicit Server(const ServerConfig& config) : timer_(new UsageTimer) { cores_ = LimitCores(config.core_list().data(), config.core_list_size()); if (config.port()) { port_ = config.port(); @@ -62,9 +62,9 @@ class Server { virtual ~Server() {} ServerStats Mark(bool reset) { - Timer::Result timer_result; + UsageTimer::Result timer_result; if (reset) { - std::unique_ptr<Timer> timer(new Timer); + std::unique_ptr<UsageTimer> timer(new UsageTimer); timer.swap(timer_); timer_result = timer->Mark(); } else { @@ -108,7 +108,7 @@ class Server { private: int port_; int cores_; - std::unique_ptr<Timer> timer_; + std::unique_ptr<UsageTimer> timer_; }; std::unique_ptr<Server> CreateSynchronousServer(const ServerConfig& config); |