diff options
Diffstat (limited to 'test/uitests/tabwidgettest.cc')
-rw-r--r-- | test/uitests/tabwidgettest.cc | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/test/uitests/tabwidgettest.cc b/test/uitests/tabwidgettest.cc index 292991c..722dc02 100644 --- a/test/uitests/tabwidgettest.cc +++ b/test/uitests/tabwidgettest.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 <hugin.hpp> #include <window.h> @@ -156,11 +150,7 @@ int main() while(test_window.processEvents()) { -#if DG_PLATFORM == DG_PLATFORM_WINDOWS - SleepEx(50, FALSE); -#else - usleep(50000); -#endif + std::this_thread::sleep_for(std::chrono::milliseconds(50)); } return 0; |