J
Jaideep
Hello!
I am new to GCC.I've abt 4-5 yrs of experience in windows
'C' programming.I find GCC much slower than turbo or microsoft
compilers.Anyway I wrote this small piece of code to calculate process
time .The code works fine in windows compilers but gives erratic output
in GCC.What could be the problem?
code-->
....
#include <time.h>
.....
void main() {
clock_t start, end;
start = clock();
//process();
end = clock();
printf("The time was: %f\n", (end - start) / CLK_TCK);
}
Is there any other way of doing the same?
I am new to GCC.I've abt 4-5 yrs of experience in windows
'C' programming.I find GCC much slower than turbo or microsoft
compilers.Anyway I wrote this small piece of code to calculate process
time .The code works fine in windows compilers but gives erratic output
in GCC.What could be the problem?
code-->
....
#include <time.h>
.....
void main() {
clock_t start, end;
start = clock();
//process();
end = clock();
printf("The time was: %f\n", (end - start) / CLK_TCK);
}
Is there any other way of doing the same?