Guest_imported
New member
- Jan 1, 1970
- 0
Hi ,
I have the following simple program.
================
#include<time.h>
clock_t start,finish;
start=clock();
sleep(10);
finish=clock();
Printf("\n start= %f finish=%f ",start,finish);
===============================
Output: start=0.0 finish=0.0
=================================
The clock function is returning 0 always. I couldn't able to find the reason. Please help me out......... Same thing I am facing with times().
Thanks in advance,
Venu
I have the following simple program.
================
#include<time.h>
clock_t start,finish;
start=clock();
sleep(10);
finish=clock();
Printf("\n start= %f finish=%f ",start,finish);
===============================
Output: start=0.0 finish=0.0
=================================
The clock function is returning 0 always. I couldn't able to find the reason. Please help me out......... Same thing I am facing with times().
Thanks in advance,
Venu