datetime - How is JavaScript's Date().getTime() method implemented? -


i determine wall clock time javascript function called, accuracy possible. when computer makes call javascript's date().gettime() function, rely on internal clock of local/executing machine @ all? if so, system calls gettime() make? , if not, how error there on average between system clock , time computed gettime()?

this stackoverflow question partly addresses issue doesn't talk possibly latency. require more precision in computation: is safe compare javascript's gettime() across different systems?

as simplifying example, assume i'm using windows machine running windows 7.