Add functions to get the execution time in ms