MappTimer()函数

Synopsis

Control the MIL timer.

Format

void MappTimer(ControlValue, TimePtr)

long ControlValue; Type of modification
double *TimePtr; Storage location for time

Description

This function controls the MIL timer. This is useful for benchmarking operations in a MIL application. The MIL timer resolution varies according to the hardware and operating system used.

The ControlValue parameter specifies the control to exert on the MIL timer. It can be set to one of the following:

ControlValue Description
M_TIMER_RESET Resets a MIL timer to zero.
M_TIMER_READ Reads the time (in seconds) of the MIL timer, since the last reset.
M_TIMER_RESOLUTION Reads the MIL timer resolution (in seconds).
M_TIMER_WAIT Wait for the specified period of time (in seconds) before returning.

The TimerPtr parameter specifies the address of the variable in which to store the timer information produced by the M_TIMER_READ or M_TIMER_RESOLUTION controls. Set to M_NULL for other control values.