summaryrefslogtreecommitdiff
path: root/test/semaphoretest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/semaphoretest.cc')
-rw-r--r--test/semaphoretest.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/semaphoretest.cc b/test/semaphoretest.cc
index 3211930..9c9d116 100644
--- a/test/semaphoretest.cc
+++ b/test/semaphoretest.cc
@@ -64,6 +64,8 @@ public:
bool res = sem.wait(std::chrono::milliseconds(1000));
CPPUNIT_ASSERT(!res); // false means timeout
auto stop = std::chrono::steady_clock::now();
+ auto d = dist((stop - start), std::chrono::milliseconds(1000));
+ printf("%lld\n", d.count());
// Allow +/-1ms skew
CPPUNIT_ASSERT(dist((stop - start), std::chrono::milliseconds(1000))