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++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -