jquery - Display time duration as hourly in Javascript? -


i have program calculate downtime want start calculating starting point end downtime finish. e.g (0 5minutes ,49minutes, 1hr : 36minutes) methods can try ?

to time (in milliseconds) can call date.now(). store somewhere , call function again @ end. subtract start end , total time elapsed, in milliseconds. after that, rest simple math transform milliseconds seconds, minutes, hours , forth.


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -