getTime()Returns in milliseconds that is passed from January 1, 1970
We have to use this along with one date object.
Here is an example
Output is here Using a button to display getTime() of current date object.
Source of this demo is here
Calculating Process time or lapse timeBy using gettime() we can find out time taken by any calculation or any other process by finding the difference in milliseconds from start and end of the process.
This article is written by plus2net.com team.