wpiutil functions

wpiutil.SetNowImpl(arg0: object) None
wpiutil.getStackTrace(offset: SupportsInt | SupportsIndex) str

Get a stack trace, ignoring the first “offset” symbols.

Parameters:

offset – The number of symbols at the top of the stack to ignore

wpiutil.getStackTraceDefault(offset: SupportsInt | SupportsIndex) str

The default implementation used for GetStackTrace().

Parameters:

offset – The number of symbols at the top of the stack to ignore

wpiutil.getSystemTime() int

Return the current system time in microseconds since the Unix epoch (January 1st, 1970 00:00 UTC).

Returns:

Time in microseconds.

wpiutil.now() int

Return a value representing the current time in microseconds. This is a monotonic clock with an undefined epoch.

Returns:

Time in microseconds.

wpiutil.nowDefault() int

The default implementation used for Now(). In general this is the time returned by the operating system.

Returns:

Time in microseconds.