[][src]Function gdnative_core::nativescript::profiling::profile

pub fn profile<F, R>(signature: Signature<'_>, f: F) -> R where
    F: FnOnce() -> R, 

Times a closure and adds the measured time to Godot's built-in profiler with the given signature, and then returns it's return value.