Learn how to a build a cloud-first strategyRegister Now


How to find out the system time when a message is received from a socket?

Posted on 2006-04-09
Medium Priority
Last Modified: 2010-04-16
Hi, I am trying to conduct an experiment that determines message-propagation delays, processor speed differences, and clock synchronization errors between 2 computers. I am running the experiment using both TCP/IP and UDP connections. I just wondered, if I could get the system time when a message is received,  I could possibly calculate the message progapation delay. However, I am not clear how to get the time stamp whenever a message is received. Could someone help me with this?
Question by:maggiesheu
1 Comment

Accepted Solution

levyuk earned 750 total points
ID: 16415120
Well when you detect the message by listening to the socket just get the system time if a message is recieved. I'm assuming here that you are detecting when a message is recieved. I believe that to get the system time it's something like

DateTime CurrTime = DateTime.Now;

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month21 days, 5 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question