blob: ca70694b4270eb6ff05d4ec8b7ce9ea63b809ef8 (
plain) (
blame)
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,
};
}
|