mbgtools-lx  4.2.8
MBG_SYS_TIME_CYCLES Struct Reference

System time plus associated cycles counter values. More...

#include <pcpsdev.h>

Data Fields

MBG_PC_CYCLES cyc_before
 cycles count before sys time is read More...
 
MBG_PC_CYCLES cyc_after
 cycles count after sys time has been read More...
 
MBG_SYS_TIME sys_time
 system time stamp More...
 

Detailed Description

System time plus associated cycles counter values.

The structure holds a system timestamp in a format depending on the target OS plus two cycles counter values which can be taken before and after reading the system time. These cycles values can be used to determine the execution time required to read the system time.

Limitations of the operating system need to be taken into account, e.g. the Windows system time may increase once every ~16 ms or ~1 ms only, depending on the Windows version.

Definition at line 386 of file pcpsdev.h.

Field Documentation

◆ cyc_after

MBG_PC_CYCLES MBG_SYS_TIME_CYCLES::cyc_after

cycles count after sys time has been read

Definition at line 389 of file pcpsdev.h.

Referenced by ioctl_switch(), and mbg_chk_time_info().

◆ cyc_before

MBG_PC_CYCLES MBG_SYS_TIME_CYCLES::cyc_before

cycles count before sys time is read

Definition at line 388 of file pcpsdev.h.

Referenced by ioctl_switch(), and mbg_chk_time_info().

◆ sys_time

MBG_SYS_TIME MBG_SYS_TIME_CYCLES::sys_time

system time stamp

Definition at line 390 of file pcpsdev.h.

Referenced by do_mbgsvctasks(), ioctl_switch(), and mbg_chk_time_info().


The documentation for this struct was generated from the following file: