jQuery event.timeStamp Property

jQuery event.timeStamp property returns the number of milliseconds since January 1, 1970. The event.timeStamp property can be useful for profiling event performance by getting the difference between two event points.


Parameter Type Description
event Event Required. The event parameter comes from event bind method


This example returns number of milliseconds since Jan 1, 1970.

<!DOCTYPE html>
  <title>jQuery event.timeStamp property</title>
  <script src="jquery-latest.min.js"></script>
  <p>When you click below button, here return <u><span>_________________</span></u> milliseconds since January 1, 1970.</p>
  <button>Get current milliSeconds</button>

Run it...   »