Training courses
Kernel and Embedded Linux
Bootlin training courses
1 2 3 4 5 6 7 8 9 10 11 12 13 14
struct bintime { unsigned long long sec; unsigned long long frac; }; struct bintime us2bintime(unsigned long long us) { return (struct bintime) { .sec = us / 1000000U, .frac = (((us % 1000000U) >> 32)/1000000U) >> 32, }; }