time-function Returns the time taken for a function to execute in milliseconds. parameters func The function to execute. args Arguments to pass to the function.