Get the time to measure the performance of a piece of code

This small example measures the performance of a piece of code.

#import "Time";

secs := get_time();
funct(); // do some work.
secs = get_time() - secs;
print("funct :: () took % seconds\n", secs);
1 Like