Gearside Design

Performance Timing with the Navigation Timing API

Here is a JavaScript snippet that you can either copy and paste into your main JS file, or just put it in <script> tags on the page you want to test. It uses the Navigation Timing API to get the timestamp of each process, then converts the times to seconds by subtracting appropriate ones from the others.