#include <stdio.h>
#include <time.h>
#include <sys/time.h>
int main(void)
{
hrtime_t time1 = gethrtime();
hrtime_t time2 = gethrtime();
printf("elapsed: %lli\n", time2 - time1);
return 0;
}
$ /opt/SUNWspro8/bin/cc -o t t.c
$ gcc -o t t.c
ANSI compilations fail:
$ gcc -ansi -o t t.c
t.c: In function `main':
t.c:9: error: invalid operands to binary -
$ /opt/SUNWspro8/bin/cc -Xc -o t t.c
"t.c", line 9: operands have incompatible types:
union {double _d, array[2] of int _l} "-" union {double _d, array[2]
of int _l}
cc: acomp failed for t.c
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
https://opensolaris.org:444/mailman/listinfo/opensolaris-code