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
Post a Comment