performance.mark('start')
doWork()
performance.mark('end')
performance.measure('task', 'start', 'end')Use performance.mark() and measure() to create named timing benchmarks.
performance.now() returns the time elapsed since the performance origin (page load / process start), which is always greater than zero.
Challenge: Verify that performance.now() is greater than 0.