◆ InterruptSampleTimeGet()

virtual int32_t InterruptSampleTimeGet ( )
pure virtualinherited

Get the sample timer value when the last interrupt was generated.

Description:
InterruptSampleTimeGet returns the sample timer value when the last interrupt was generated. The sample timer keeps track of the number of samples which have occured since the last reset/rollover (typically a controller or power reset).
Returns
(int32_t) Sample timer value when last interrupt was generated.
Sample Code:
// -- C++ -- //
printf("InterruptSampleTimer = %ld\n", controller->InterruptSampleTimeGet());
// -- C# -- //
Console.WriteLine("InterruptSampleTimer = {0}", controller.InterruptSampleTimeGet());
See also
InterruptSampleTimeGet
Examples
ControllerInterrupts.cpp.