Executes the given function and measures how long the execution takes.
The function of which the execution speed should be measured.
A tuple with the result of the function, and the execution time in milliseconds.
Executes the given function and measures how long the execution takes.