#include <windows.h>
#include "hyport.h"
#include "portpriv.h"
#include "hyportpg.h"
Functions | |
UDATA VMCALL | hytime_msec_clock (struct HyPortLibrary *portLibrary) |
Query OS for timestamp. | |
UDATA VMCALL | hytime_usec_clock (struct HyPortLibrary *portLibrary) |
Query OS for timestamp. | |
I_64 VMCALL | hytime_current_time_millis (struct HyPortLibrary *portLibrary) |
Query OS for timestamp. | |
U_64 VMCALL | hytime_hires_clock (struct HyPortLibrary *portLibrary) |
Query OS for timestamp. | |
U_64 VMCALL | hytime_hires_frequency (struct HyPortLibrary *portLibrary) |
Query OS for clock frequency Retrieves the frequency of the high-resolution performance counter. | |
U_64 VMCALL | hytime_hires_delta (struct HyPortLibrary *portLibrary, U_64 startTime, U_64 endTime, UDATA requiredResolution) |
Calculate time difference between two hires clock timer values hytime_hires_clock. | |
void VMCALL | hytime_shutdown (struct HyPortLibrary *portLibrary) |
PortLibrary shutdown. | |
I_32 VMCALL | hytime_startup (struct HyPortLibrary *portLibrary) |
PortLibrary startup. |
|
Query OS for timestamp. Retrieve the current value of system clock and convert to milliseconds since January 1st 1970.
|
|
Query OS for timestamp. Retrieve the current value of the high-resolution performance counter.
|
|
Calculate time difference between two hires clock timer values hytime_hires_clock. Given a start and end time determine how much time elapsed. Return the value as requested by the required resolution
|
|
Query OS for clock frequency Retrieves the frequency of the high-resolution performance counter.
|
|
Query OS for timestamp. Retrieve the current value of system clock and convert to milliseconds.
|
|
PortLibrary shutdown. This function is called during shutdown of the portLibrary. Any resources that were created by hytime_startup should be destroyed here.
|
|
PortLibrary startup. This function is called during startup of the portLibrary. Any resources that are required for the time operations may be created here. All resources created here should be destroyed in hytime_shutdown.
|
|
Query OS for timestamp. Retrieve the current value of system clock and convert to microseconds.
|