summaryrefslogtreecommitdiff
path: root/testtools/source/performance/ubtest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'testtools/source/performance/ubtest.cxx')
-rw-r--r--testtools/source/performance/ubtest.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/testtools/source/performance/ubtest.cxx b/testtools/source/performance/ubtest.cxx
index 89643574198e..9b342d657d5a 100644
--- a/testtools/source/performance/ubtest.cxx
+++ b/testtools/source/performance/ubtest.cxx
@@ -28,7 +28,7 @@
#include <osl/mutex.hxx>
#include <osl/module.h>
#include <osl/process.h>
-#include <osl/thread.h>
+#include <osl/thread.hxx>
#include <osl/conditn.hxx>
#include <osl/time.h>
@@ -1103,9 +1103,7 @@ sal_Int32 TestImpl::run( const Sequence< OUString > & rArgs )
osl_freeProcessHandle( hProcess );
// wait three seconds
- TimeValue threeSeconds;
- threeSeconds.Seconds = 3;
- osl_waitThread( &threeSeconds );
+ osl::Thread::wait(std::chrono::seconds(3));
// connect and resolve outer process object
Reference< XInterface > xResolvedObject( resolveObject( OUString("uno:socket,host=localhost,port=6000;iiop;TestRemoteObject") ) );