Hi,
I wish to get a time stamp (that includes milliseconds) when a certain
event occurs. I am monitoring a serial port for binary data. When a
complete message is processed I want to take a timestamp. I am not
using my timestamp as an indication of when the data was measured as a
timestamp is included in the data I'm dealing withm, I just want to
timestamp my message. I've done a bit of reading and am getting
confused about all the varying opinions on the accuracy of the various
methods of getting the system time. I am not interested in determining
the elapsed time between the events. Which is the more widely adopted
method of obtaining an "accurate" UTC time stamp that includes
milliseconds.
Thanks
Paul
J French - 24 May 2004 14:14 GMT
>Hi,
>
[quoted text clipped - 9 lines]
>method of obtaining an "accurate" UTC time stamp that includes
>milliseconds.
My, time related problems are coming up today
GetSystemTime is the first thing you need
- it is a 16 byte UTC time stamp
cmoyaX@nospam.com - 26 May 2004 22:40 GMT
Maybe GetTickCount might help?
Public Declare Function GetTickCount Lib "kernel32" Alias "GetTickCount" ()
As Long
Look it up in MSDN.
> Hi,
>
[quoted text clipped - 13 lines]
>
> Paul
Paul - 31 May 2004 16:07 GMT