timer.jquery icon indicating copy to clipboard operation
timer.jquery copied to clipboard

Milliseconds

Open Dimitris-Nikolopoulos opened this issue 10 years ago • 4 comments

Very nice plugin!!! You have done a great job!!!

Is there any way to display a format with milliseconds?

Thank you for your time

Dimitris-Nikolopoulos avatar Oct 27 '15 11:10 Dimitris-Nikolopoulos

Thank you for you kind words!

Currently the timer subtracts the current timestamp from the timestamp from when the timer was started. It does this every 500ms to get the accurate number of seconds elapsed. To get the milliseconds we will have to do it at every millisecond! I m not so sure if this would be the right approach. But I m marking this suggestion as an enhancement in case someone wants to develop it and make a PR.

walmik avatar Oct 28 '15 15:10 walmik

What about not going the whole way, but instead stopping at, say 1/10ths or 1/100ths, as those are usually enough even for real time applications? Not having any decimal places reduces the responsiveness feeling.

rsxdalv avatar May 09 '16 13:05 rsxdalv

Hi i have done in 100ms render than exactly 1000 milliseconds format to ensure better performance and precision.. it also support formatting code "%x" which is for milliseconds in 100s..

``

akgoenka avatar Oct 15 '16 19:10 akgoenka

@akgoenka can you share code i want to use millisecond one

myselfgaurav avatar Dec 03 '19 13:12 myselfgaurav