Can some one tell me if this is the right way using clock

Code:
#include <time.h>
int main()
{
int secs=0;
clock_t  begin;
begin = clock();
secs = begin/CLOCKS_PER_SEC;
}
Thanks