coastline 0.0.4
Loading...
Searching...
No Matches
timer.h
Go to the documentation of this file.
1#ifndef COASTLINE_PLATFORM_WIN_TIMER_H
2#define COASTLINE_PLATFORM_WIN_TIMER_H
3
8
9#include <windows.h>
10#ifndef __cplusplus
11#include <stdbool.h>
12#endif
13
14#include "common/frameclock.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
27
35
42extern int g_bHasPerfCounter;
43
52
53#ifdef __cplusplus
54}
55#endif
56
57#endif // COASTLINE_PLATFORM_WIN_TIMER_H
The ticks of the frames of a race of the Boss Rally release, at 30 frames a second.
LARGE_INTEGER g_liPerfCounterFrequency
The frequency of the performance counter, in counts a second.
int g_bHasPerfCounter
Whether the system has a performance counter.
int g_bHighResTimerFirstCall
Whether GetHighResolutionTime() has not run yet.
DWORD g_dwPerfCounterBaseMs
The time of the performance counter at the first call of GetHighResolutionTime(), in milliseconds.
typedef DWORD