summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/throughput/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Ice/throughput/Client.cpp')
-rw-r--r--cpp/demo/Ice/throughput/Client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/demo/Ice/throughput/Client.cpp b/cpp/demo/Ice/throughput/Client.cpp
index 82a3e621e69..6bbf4e22f7d 100644
--- a/cpp/demo/Ice/throughput/Client.cpp
+++ b/cpp/demo/Ice/throughput/Client.cpp
@@ -152,7 +152,7 @@ ThroughputClient::run(int argc, char* argv[])
cout << "==> ";
cin >> c;
- IceUtil::Time tm = IceUtil::Time::now();
+ IceUtil::Time tm = IceUtil::Time::now(IceUtil::Time::Monotonic);
const int repetitions = 1000;
if(c == '1' || c == '2' || c == '3' || c == '4')
@@ -379,7 +379,7 @@ ThroughputClient::run(int argc, char* argv[])
}
}
- tm = IceUtil::Time::now() - tm;
+ tm = IceUtil::Time::now(IceUtil::Time::Monotonic) - tm;
cout << "time for " << repetitions << " sequences: " << tm * 1000 << "ms" << endl;
cout << "time per sequence: " << tm * 1000 / repetitions << "ms" << endl;
int wireSize = 0;