diff options
Diffstat (limited to 'timer/src')
-rw-r--r-- | timer/src/timer.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/timer/src/timer.c b/timer/src/timer.c index 0c33e51..da3485b 100644 --- a/timer/src/timer.c +++ b/timer/src/timer.c | |||
@@ -1,16 +1,15 @@ | |||
1 | #include "timer.h" | 1 | #include "timer.h" |
2 | 2 | ||
3 | #include <stdlib.h> | 3 | #include <stdlib.h> |
4 | |||
5 | #ifdef _WIN32 | 4 | #ifdef _WIN32 |
6 | static const int64_t microseconds = 1000000; | 5 | #define WIN32_LEAN_AND_MEAN |
6 | #include <Windows.h> | ||
7 | #endif | 7 | #endif |
8 | static const int64_t nanoseconds = 1000000000; | ||
9 | 8 | ||
10 | #ifdef _WIN32 | 9 | #ifdef _WIN32 |
11 | #define WIN32_LEAN_AND_MEAN | 10 | static const int64_t microseconds = 1000000; |
12 | #include <Windows.h> | ||
13 | #endif | 11 | #endif |
12 | static const int64_t nanoseconds = 1000000000; | ||
14 | 13 | ||
15 | #ifdef _WIN32 | 14 | #ifdef _WIN32 |
16 | static double seconds_per_count; | 15 | static double seconds_per_count; |