blob: ac1c7b694bd0d26773b7f302675b467ae27b9afc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#define KIT_TEST_FILE test_duration
#include "../../kit_test/test.h"
#ifdef _WIN32
# include <windows.h>
static void kit_sleep(int ms) {
Sleep(ms);
}
#else
# include <unistd.h>
static void kit_sleep(int ms) {
usleep(ms * 1000);
}
#endif
TEST("test duration") {
kit_sleep(100);
}
|