coastline 0.0.4
Loading...
Searching...
No Matches
timer.h File Reference

The clock of the PC port. More...

#include <windows.h>
#include <stdbool.h>
#include "common/frameclock.h"
Include dependency graph for timer.h:

Go to the source code of this file.

Variables

int g_bHighResTimerFirstCall
 Whether GetHighResolutionTime() has not run yet.
LARGE_INTEGER g_liPerfCounterFrequency
 The frequency of the performance counter, in counts a second.
int g_bHasPerfCounter
 Whether the system has a performance counter.
DWORD g_dwPerfCounterBaseMs
 The time of the performance counter at the first call of GetHighResolutionTime(), in milliseconds.

Detailed Description

The clock of the PC port.

Variable Documentation

◆ g_bHighResTimerFirstCall

int g_bHighResTimerFirstCall
extern

Whether GetHighResolutionTime() has not run yet.

Ghidra address:
BRD3D: 0x100bbad4
Ghidra address:
BRGlide: 0x100bb2dc

◆ g_liPerfCounterFrequency

LARGE_INTEGER g_liPerfCounterFrequency
extern

The frequency of the performance counter, in counts a second.

Ghidra address:
BRD3D: 0x118ab120
Ghidra address:
BRGlide: 0x118ee238

◆ g_bHasPerfCounter

int g_bHasPerfCounter
extern

Whether the system has a performance counter.

Ghidra address:
BRD3D: 0x118ab128
Ghidra address:
BRGlide: 0x118ee240

◆ g_dwPerfCounterBaseMs

DWORD g_dwPerfCounterBaseMs
extern

The time of the performance counter at the first call of GetHighResolutionTime(), in milliseconds.

Ghidra address:
BRD3D: 0x118ab130
Ghidra address:
BRGlide: 0x118ee248