hai friend there is one more good way to get the time taken by some process use times system call first call this at the start of the program and once at the end and get the differance in the time values returned by both the calls we can all the time usrtime , systime etc .. see <> man 2 times <> shell command time may be using same system call shubh REC-Surat