[][src]Function wpilib_sys::bindings::HAL_GetMatchTime

pub unsafe extern "C" fn HAL_GetMatchTime(status: *mut i32) -> f64

Returns the approximate match time.

The FMS does not send an official match time to the robots, but does send an approximate match time. The value will count down the time remaining in the current period (auto or teleop).

Warning: This is not an official time (so it cannot be used to dispute ref calls or guarantee that a function will trigger before the match ends).

The Practice Match function of the DS approximates the behaviour seen on the field.

@param status the error code, or 0 for success @return time remaining in current match period (auto or teleop)