It was mentioned in a previous discussion by Cloudflare that…
" Date.now() only advances when I/O is performed, however, and is intentionally coarse."
Which means that you can’t measure how long a worker takes to do some work, but you can measure how long requests using fetch take to complete. If i remember correctly, they also make exact timing harder to avoid timing attacks.