Standard LibraryFunctionstimeOn this pagetime time(const Action func) -> TimerDuration Times the execution of a function and returns the elapsed duration. Parameters func: The function to time.