fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 125: Measure function call duration
Idiom # 125: Measure function call duration
See
programming-idioms.org
:
Code
t := (time.stopwatch (() -> foo)).nanos
What are effects?
Running example
ex125 is foo => time.nano.sleep (time.duration.seconds 1) t := (time.stopwatch (() -> foo)).nanos say t
What are effects?
last changed: 2024-07-01
next: Idiom # 126: Multiple return values