Код: Выделить всё
static inline u64 read_tsc(void) {
u32 hi, lo;
asm volatile("rdtsc" : "=a"(lo), "=d"(hi));
return ((u64)hi < /ol>
Подробнее здесь: [url]https://stackoverflow.com/questions/79681458/boot-time-calculation-using-tsc-time-stamp-counter-in-yocto[/url]
Мобильная версия