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