Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I time IPC mechanisms like Pipes and Signal?

Status
Not open for further replies.

chode29

Programmer
Oct 3, 2003
1
0
0
US
I need to time how long it takes to send a signal (and pass bytes through pipes). I have been using time() in my program. But the stamp is in seconds since epoch, and the process time (pipes and signals) takes much less than seconds to complete. I need a timing mechanism that can measure the small times. And, what number type can accomidate those small numbers (float, double, etc..)
Thank You
 
try using select().
Its timeout value can be of use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top