mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-09-30 19:33:49 +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>
old-commit-hash: 1295cfe06c
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