ark-api-ffi 0.16.0

Ark low-level Wasm FFI API
Documentation
define_api_id!(0xbb0f_0dfe_ff53_2a57, "applet-v2");

#[ark_api_macros::ark_bindgen(imports = "ark-applet-v2")]
mod applet {
    extern "C" {
        /// The real time that has passed since the module was started, in seconds.
        ///
        /// Ignores things like pausing, computer falling asleep, etc.
        /// Also know as [_wall time_](https://en.wikipedia.org/wiki/Elapsed_real_time).
        #[deprecated_infallible]
        pub fn real_time_since_start() -> f64;

        /// The game time that has passed since the module was started, in seconds.
        ///
        /// Can be paused, sped up, etc. delta_time() is the delta of this.
        #[deprecated_infallible]
        pub fn game_time() -> f64;
    }
}

pub use applet::*;