16typedef unsigned int uint32_t;
29#define PMEXPORT __declspec(dllexport)
PMEXPORT int Pt_Started(void)
test if the timer is running.
PMEXPORT PtError Pt_Stop(void)
stop the timer.
PMEXPORT PtError Pt_Start(int resolution, PtCallback *callback, void *userData)
start a real-time clock service.
void() PtCallback(PtTimestamp timestamp, void *userData)
a function that gets a current time
Definition: porttime.h:53
PMEXPORT void Pt_Sleep(int32_t duration)
pauses the current thread, allowing other threads to run.
PMEXPORT PtTimestamp Pt_Time(void)
get the current time in ms.
PtError
PortTime error code; a common return type.
Definition: porttime.h:39
int32_t PtTimestamp
real time or time offset in milliseconds.
Definition: porttime.h:50