Sure, then let's update this function do do what the comment says, use performance.now if available, otherwise Date.now.