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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -