SystemTimeInterruptMonitor Class

SystemTimeInterruptMonitor class

Simple implementation of by checking and comparing current system time with user specified limit.


type SystemTimeInterruptMonitor struct  {
	ptr unsafe.Pointer
}

Constructors

MethodDescription
NewSystemTimeInterruptMonitorConstructs one interruption monitor.

Methods

MethodDescription
IsNullChecks whether the implementation object is nullptr.
StartMonitorStarts the monitor with the specified time limit. The start time to calculate time cost is just when this method is called,so the procedure which needs to be monitored should be started just after this call.
IsInterruptionRequestedThis implementation just checks whether the time cost(from the time when starting this monitor to now) is greater than user specified limit.
GetTerminateWithoutExceptionSee .This property is specified by user when constructing this monitor instance.