Networking Forums

Networking Forums > Computer Networking > Linux Networking > measure time

Reply
 
 
linda
Guest
Posts: n/a

 
      09-17-2003, 02:18 PM
hi, I want to measure the time elapse when the socket copy data from user
space to kernel space, and time elapse when data flow down to adjacent
protocol layer. can anybody give me some advice. thanks very much.


 
Reply With Quote
 
 
 
 
Tyler Larson
Guest
Posts: n/a

 
      09-19-2003, 09:26 PM
"linda" <(E-Mail Removed)> wrote in message news:<bk9qdq$l7i$(E-Mail Removed)>...
> hi, I want to measure the time elapse when the socket copy data from user
> space to kernel space, and time elapse when data flow down to adjacent
> protocol layer. can anybody give me some advice. thanks very much.


look at the times(2) manpage: "man 2 times"

basically, you use the times() function to record the current time
information, execute whatever operation you want, then run times()
again and print the difference.
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
measure time on internet ..?? Mr. X Linux Networking 7 12-13-2007 06:28 PM
how to measure ? prototype_nsx Wireless Internet 3 08-26-2007 03:34 AM
Measure the Accept Queueing Time! Benjamin Chu Linux Networking 0 01-26-2006 06:31 PM
tcp time measure Stephan Absmeier Linux Networking 2 09-29-2003 12:06 PM
how to accurately measure processing time Ramy Asselin Linux Networking 0 09-01-2003 04:23 AM



1 2 3 4 5 6 7 8 9 10 11