retro_perf_get_counter_t

Type Alias retro_perf_get_counter_t 

Source
pub type retro_perf_get_counter_t = Option<unsafe extern "C" fn() -> retro_perf_tick_t>;
Expand description

A simple counter. Usually nanoseconds, but can also be CPU cycles. Can be used directly if desired (when creating a more sophisticated performance counter system).

Aliased Type§

pub enum retro_perf_get_counter_t {
    None,
    Some(unsafe extern "C" fn() -> u64),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn() -> u64)

Some value of type T.