mbgtools-lx
4.2.8
|
Functions | |
int | mbg_get_xhrt_time_as_pcps_hr_time (MBG_XHRT_INFO *p, PCPS_HR_TIME *p_hrt) |
Retrieve an extrapolated time stamp in PCPS_HR_TIME format. More... | |
int | mbg_get_xhrt_time_as_filetime (MBG_XHRT_INFO *p, int *p_ft) |
Retrieve an extrapolated time stamp in FILETIME format. More... | |
int | mbg_get_xhrt_cycles_frequency (MBG_XHRT_INFO *p, MBG_PC_CYCLES_FREQUENCY *p_freq_hz) |
Retrieve the frequency of the system's cycles counter. More... | |
::TODO
int mbg_get_xhrt_cycles_frequency | ( | MBG_XHRT_INFO * | p, |
MBG_PC_CYCLES_FREQUENCY * | p_freq_hz | ||
) |
Retrieve the frequency of the system's cycles counter.
The frequency is determined by the device polling thread. See Extrapolation of high resolution time stamps for details and limitations.
This function is only implemented for targets that support threads.
[in,out] | p | Pointer to a MBG_XHRT_INFO structure used to retrieve data from the polling thread. |
[out] | p_freq_hz | Pointer to a MBG_PC_CYCLES_FREQUENCY variable in which the frequency is returned. |
Referenced by do_mbgxhrtime(), and mbg_set_current_process_affinity_to_cpu().
int mbg_get_xhrt_time_as_filetime | ( | MBG_XHRT_INFO * | p, |
int * | p_ft | ||
) |
Retrieve an extrapolated time stamp in FILETIME format.
The time stamp is extrapolated using the system's current cycles counter value and a time stamp plus associated cycles counter value saved by the polling thread. See Extrapolation of high resolution time stamps for details and limitations.
Since FILETIME is a Windows-specific type this function is only implemented under Windows.
[in,out] | p | Pointer to a MBG_XHRT_INFO structure used to retrieve data from the polling thread. |
[out] | p_ft | Pointer to a FILETIME structure to be filled up. |
Referenced by mbg_set_current_process_affinity_to_cpu().
int mbg_get_xhrt_time_as_pcps_hr_time | ( | MBG_XHRT_INFO * | p, |
PCPS_HR_TIME * | p_hrt | ||
) |
Retrieve an extrapolated time stamp in PCPS_HR_TIME format.
The time stamp is extrapolated using the system's current cycles counter value and a time stamp plus associated cycles counter value saved by the polling thread. See Extrapolation of high resolution time stamps for details and limitations.
This function is only implemented for targets that support threads.
[in,out] | p | Pointer to a MBG_XHRT_INFO structure used to retrieve data from the polling thread. |
[out] | p_hrt | Pointer to a PCPS_HR_TIME structure to be filled up. |
Referenced by do_mbgxhrtime(), and mbg_set_current_process_affinity_to_cpu().