Is there some trick to measuring how long a function takes to run seeing as `Date.now()` doesn't wor

Is there some trick to measuring how long a function takes to run seeing as Date.now() doesn't work?
Was this page helpful?