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++: Boost interprocess memory mapped file error -

python - IO.UnsupportedOperation: Not Writable -

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