mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-20 23:53:44 +08:00
Using lgtm.com and fixing found alerts (#1452)
* lgtm in readme, and mac nui fixes * call super inits in radars * unused imports, dup lines * more radars, more unused imports * pass CP into RadarInterfaceBase * more fixups * unused imports * delete unused lines * ugh, new unused import Co-authored-by: George Hotz <geohot@gmail.com>
This commit is contained in:
@@ -15,7 +15,11 @@
|
||||
|
||||
static inline uint64_t nanos_since_boot() {
|
||||
struct timespec t;
|
||||
clock_gettime(CLOCK_BOOTTIME, &t);
|
||||
#ifdef __APPLE__
|
||||
clock_gettime(CLOCK_REALTIME, &t);
|
||||
#else
|
||||
clock_gettime(CLOCK_BOOTTIME, &t);
|
||||
#endif
|
||||
return t.tv_sec * 1000000000ULL + t.tv_nsec;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user