#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. |
I_64 VMCALL hytime_current_time_millis | ( | struct HyPortLibrary * | portLibrary | ) |
Query OS for timestamp.
Retrieve the current value of system clock and convert to milliseconds since January 1st 1970.
[in] | portLibrary | The port library. |
U_64 VMCALL hytime_hires_clock | ( | struct HyPortLibrary * | portLibrary | ) |
Query OS for timestamp.
Retrieve the current value of the high-resolution performance counter.
[in] | portLibrary | The port library. |
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.
Given a start and end time determine how much time elapsed. Return the value as requested by the required resolution
[in] | portLibrary | The port library. |
[in] | startTime | Timer value at start of timing interval |
[in] | endTime | Timer value at end of timing interval |
[in] | requiredResolution | Returned timer resolution as a fraction of a second. For example:
|
U_64 VMCALL hytime_hires_frequency | ( | struct HyPortLibrary * | portLibrary | ) |
Query OS for clock frequency Retrieves the frequency of the high-resolution performance counter.
[in] | portLibrary | The port library. |
UDATA VMCALL hytime_msec_clock | ( | struct HyPortLibrary * | portLibrary | ) |
Query OS for timestamp.
Retrieve the current value of system clock and convert to milliseconds.
[in] | portLibrary | The port library. |
void VMCALL hytime_shutdown | ( | struct HyPortLibrary * | portLibrary | ) |
PortLibrary shutdown.
This function is called during shutdown of the portLibrary. Any resources that were created by hytime_startup should be destroyed here.
[in] | portLibrary | The port library. |
I_32 VMCALL hytime_startup | ( | struct HyPortLibrary * | portLibrary | ) |
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.
[in] | portLibrary | The port library. |
UDATA VMCALL hytime_usec_clock | ( | struct HyPortLibrary * | portLibrary | ) |
Query OS for timestamp.
Retrieve the current value of system clock and convert to microseconds.
[in] | portLibrary | The port library. |
Genereated on Tue Dec 9 14:12:59 2008 by Doxygen.
(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.