2 * Support file for nvptx in newlib.
9 unsigned long long now
;
11 asm volatile("mov.u64 %0, %%globaltimer;" : "=r"(now
));
12 return now
/((1000000000ull)/CLOCKS_PER_SEC
);
14 asm volatile("mov.u64 %0, %%clock64;" : "=r"(now
));
15 // Assume a GPU base clock frequency of 1250MHz.
16 return now
/((1250000000ull)/CLOCKS_PER_SEC
);