Measuring System Call Time

Can anyone please help me in measuring the system call timings!

How do I do it if I have to measure the timing of an operation, say getpid system call.

What different functions can I use for that and what would be the difference using each of them?

Thanx!

No homework in the forums..... thanks for reading the rules and abiding by them.

Hello Neo!

Can u suggest me a place where i can get some help bout this... if not here!

I'd really appreciate it!

Thanx!