|
|
@ -13,9 +13,9 @@ main(void)
|
|
|
|
char *d = malloc(MAX_BUF + 1);
|
|
|
|
char *d = malloc(MAX_BUF + 1);
|
|
|
|
int r = read(0, d, MAX_BUF);
|
|
|
|
int r = read(0, d, MAX_BUF);
|
|
|
|
|
|
|
|
|
|
|
|
// unsigned long long st = __getcycles(), en = 0;
|
|
|
|
// unsigned long long st = getcycles(), en = 0;
|
|
|
|
// wrk();
|
|
|
|
// wrk();
|
|
|
|
// en = __getcycles();
|
|
|
|
// en = getcycles();
|
|
|
|
|
|
|
|
|
|
|
|
// if (r <= 0) printf("%llu\n", en > st ? (en - st)/CPU_CYCS : -1);
|
|
|
|
// if (r <= 0) printf("%llu\n", en > st ? (en - st)/CPU_CYCS : -1);
|
|
|
|
if (r < 0)
|
|
|
|
if (r < 0)
|
|
|
|