protologic_core/cpu.rs
1use crate::lowlevel::quickstate;
2
3/// Get the current amount of "fuel" available for CPU operations within this tick.
4pub fn cpu_get_fuel() -> i64
5{
6 // Note: this does _not_ read from quickstate. We want to get a "live" value every time this is called!
7 unsafe
8 {
9 return quickstate::cpu_get_fuel();
10 }
11}