var foo = new Date(); var bar = new Date(); var baz = new Date(); baz.setTime(bar.getTime() - foo.getTime()); alert(baz.getMilliseconds() + " ms elapsed between the definition of foo and bar.");
Get the time elapsed between two intervals
Leave a Reply
You must be logged in to post a comment.