Mojo function
time_function
time_function[: origin.set, //, func: fn() raises capturing -> None]() -> Int
Measures the time spent in the function.
Parameters:
- func (
fn() raises capturing -> None
): The function to time.
Returns:
The time elapsed in the function in ns.
time_function[: origin.set, //, func: fn() capturing -> None]() -> Int
Measures the time spent in the function.
Parameters:
- func (
fn() capturing -> None
): The function to time.
Returns:
The time elapsed in the function in ns.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!