"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.
|