summaryrefslogtreecommitdiff
path: root/test/uitests/framewidgettest.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-05-06 16:31:29 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-05-06 16:31:29 +0200
commita1f4e968563763435027a905be8349cda1974e00 (patch)
treee048f6c4bf7f41cdc87166ab1d00fead43adfb6d /test/uitests/framewidgettest.cc
parentb7b5b9ee2a9d6cefe9b83589122cedb89c22279c (diff)
Get rid of platform dependent usleep/SleepEx.
Diffstat (limited to 'test/uitests/framewidgettest.cc')
-rw-r--r--test/uitests/framewidgettest.cc16
1 files changed, 3 insertions, 13 deletions
diff --git a/test/uitests/framewidgettest.cc b/test/uitests/framewidgettest.cc
index 2b94688..a2a24db 100644
--- a/test/uitests/framewidgettest.cc
+++ b/test/uitests/framewidgettest.cc
@@ -25,14 +25,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
#include <iostream>
-
-#include <platform.h>
-
-#if DG_PLATFORM == DG_PLATFORM_WINDOWS
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-#endif
-#include <unistd.h>
+#include <chrono>
+#include <thread>
#include <button.h>
#include <checkbox.h>
@@ -180,11 +174,7 @@ int main()
while(test_window.processEvents())
{
-#ifdef WIN32
- SleepEx(50, FALSE);
-#else
- usleep(50000);
-#endif
+ std::this_thread::sleep_for(std::chrono::milliseconds(50));
}
return 0;