Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General 2 / May 2004



Tip: Looking for answers? Try searching our database.

Please help: Get timestamp

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul - 24 May 2004 11:53 GMT
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
Thanks for the replies
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.