JRS: In article <y7************ *******@ursa-nb00s0.nbnet.nb .ca>, seen
in news:comp.lang. javascript, Guy <so*****@somewh ere.nb.ca> posted at
Fri, 5 Dec 2003 02:33:02 :-
JavaScript can get time, can it get milliseconds, or actually just tenths of
seconds?
The ECMA-262 language definition strongly implies that it will get no
better than milliseconds, without being quite as explicit as one might
wish.
D = new Date() always AFAIK sets D to an integer, and the routines for
handling dates make no specified allowance for fractional milliseconds.
In DOS..Win98 browsers, the time changes exactly 0x1800B0 times per 24
nominal hours, which is near 18.2 Hz or 54.9 ms. But the conversion is
to a multiple of 10 ms, so going up 50 or 60 ms each time.
In WinNT browsers, I believe that there are 10 ms steps.
Details for other systems would be welcome.
--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang. javascript
<URL:http://www.merlyn.demo n.co.uk/js-index.htm> JS maths, dates, sources.
<URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links.