Mail Archives: djgpp/1999/08/12/04:44:39
1)
Quoting libc's documentation,
"(...) `printf' cannot print a value of type `uclock_t', even though
it is an integer value, because it is a 64-bit integer."
But what about this:
printf("%lld\n", uclock());
?
---------------------------------
2)
I ran this piece of code
#include <time.h>
#include <stdio.h>
int main()
{
int i;
for (i=0; i<20; i++)
{
printf("%lld\n", uclock());
}
return 0;
}
And the output was:
0
2344
4706
-58025
-55437
-52861
-50285
-47706
-45697
-43150
-40577
-37922
-35342
-32767
-30191
-28242
-25667
-23090
-20514
-17861
Why is it printing negative values? Does it have to do with the fact that I
am running from a Win95 DOS box?
Regards,
Thiago
- Raw text -