summaryrefslogtreecommitdiff
path: root/smoketest/smoketest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'smoketest/smoketest.cxx')
-rw-r--r--smoketest/smoketest.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/smoketest/smoketest.cxx b/smoketest/smoketest.cxx
index c4c2178066e1..6bc2a9c531e6 100644
--- a/smoketest/smoketest.cxx
+++ b/smoketest/smoketest.cxx
@@ -18,6 +18,7 @@
*/
#include <sal/types.h>
+#include <chrono>
#include "boost/noncopyable.hpp"
#include "com/sun/star/awt/AsyncCallback.hpp"
#include "com/sun/star/awt/XCallback.hpp"
@@ -177,8 +178,7 @@ void Test::test() {
css::uno::Any());
// Wait for result.condition or connection_ going stale:
for (;;) {
- TimeValue delay = { 1, 0 }; // 1 sec
- osl::Condition::Result res = result.condition.wait(&delay);
+ osl::Condition::Result res = result.condition.wait(std::chrono::seconds(1)); // 1 sec delay
if (res == osl::Condition::result_ok) {
break;
}