/// Detects if the number of ticks has passed yet
Detects if the number of ticks has passed yet
Detects if the number of ticks has passed yet
pub fn has_time_passed(at_tick: u32) -> bool {
	// https://arduino.stackexchange.com/a/12588/3134
	let half_max = 2u32.pow(31);
	get_ticks().wrapping_sub(at_tick).wrapping_add(half_max) >= half_max
}
pub fn has_time_passed ( at_tick : u32 ) -> bool { // https://arduino.stackexchange.com/a/12588/3134 let half_max = 2u32 . pow ( 31 ) ; get_ticks ( ) . wrapping_sub ( at_tick ) . wrapping_add ( half_max ) >= half_max }
Detects if the number of ticks has passed yet
Detects if the number of ticks has passed yet
at_tick
u32