Sleep command usage in linux
===

As a part of my academic project i have to execute a C program.I want to get the execution time of the program.For that i have to sleep all other processes in Linux for some seconds.Is there any method for doing this work?.('time' command in Linux is not working properly.It shows different execution time when i am executing the same program.So i am computing execution time by seeing the difference between start time and end time,if any suggestions please,please help me.).
------------------------------------strong text------------------------------------