aboutsummaryrefslogtreecommitdiffstats
path: root/test/base/timestamp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/base/timestamp.cpp')
-rw-r--r--test/base/timestamp.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/base/timestamp.cpp b/test/base/timestamp.cpp
index 2d8e6caf..23ea3b04 100644
--- a/test/base/timestamp.cpp
+++ b/test/base/timestamp.cpp
@@ -22,11 +22,11 @@
*
*/
+#include <thread>
#include "base/timestamp.hpp"
#include <cppunit/extensions/HelperMacros.h>
#include <log4cpp/Category.hh>
-#include <boost/thread/thread.hpp>
namespace usdx
{
@@ -49,15 +49,15 @@ namespace usdx
void testWaitShorter()
{
Timestamp t;
- boost::this_thread::sleep(boost::posix_time::milliseconds(500));
- CPPUNIT_ASSERT_EQUAL(t.since(0.6), true);
+ std::this_thread::sleep_for(std::chrono::milliseconds{500});
+ CPPUNIT_ASSERT_EQUAL(t.since(std::chrono::milliseconds{600}), true);
}
void testWaitLonger()
{
Timestamp t;
- boost::this_thread::sleep(boost::posix_time::milliseconds(500));
- CPPUNIT_ASSERT_EQUAL(t.since(0.4), false);
+ std::this_thread::sleep_for(std::chrono::milliseconds{500});
+ CPPUNIT_ASSERT_EQUAL(t.since(std::chrono::milliseconds{400}), false);
}
};