12-06-2008 12:31 AM
Hi..
Time difference between two GetDate/Time calls with a wait function in between shows a lesser time taken than the wait duration specified. How is that possible? Pls see the attached VI. Any thoughts?
Thanks and regards
Chandra
12-06-2008 12:50 AM - edited 12-06-2008 12:54 AM
If you use "Highlight Execution", then you will see the behavior you have posted. Otherwise it has no problems.
[Edit: Or am i missing something. Correct me if i am wrong.]
12-06-2008 06:11 AM
The get-date time function has a resolution of 16 ms. (or something like that) on Windows , the returned timestamp isn't fully accurate. This is an OS limitation.
Ton (if you use the Tick count you will see a wait time of 50/51 ms)
12-06-2008 07:23 AM
Many thanks for the Tick Count tip.
After your reply, I found this link related to what you mentioned above:
http://digital.ni.com/public.nsf/allkb/4E12F6841016929D86257126007A9D94?OpenDocument
This leads to one more question. Is there any other way we can get the current time with a resolution of 1 ms (in Windows XP)?
Thanks,
Chandra