function
time_function
time_function[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.
function
time_function[func: fn() capturing -> None]() -> Int
Measures the time spent in the function.
Parameters:
fn() capturing -> None
): The function to time.Returns:
The time elapsed in the function in ns.