getTime()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.Calculate the Process duration Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
|
▼ More on JavaScript Date |