From d023397ba94cd1b2a47acf0e8b900cd8d53eb360 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Sat, 13 Mar 2021 02:31:55 +0800 Subject: [PATCH] thneed: remove redundant function nanos_since_boot (#20329) --- selfdrive/modeld/thneed/thneed.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/selfdrive/modeld/thneed/thneed.cc b/selfdrive/modeld/thneed/thneed.cc index 481a077501..e11fcb8a96 100644 --- a/selfdrive/modeld/thneed/thneed.cc +++ b/selfdrive/modeld/thneed/thneed.cc @@ -5,6 +5,7 @@ #include #include #include +#include "common/timing.h" #include "common/clutil.h" #include "thneed.h" @@ -17,12 +18,6 @@ map, string> g_args; map, int> g_args_size; map g_program_source; -static inline uint64_t nanos_since_boot() { - struct timespec t; - clock_gettime(CLOCK_BOOTTIME, &t); - return t.tv_sec * 1000000000ULL + t.tv_nsec; -} - void hexdump(uint32_t *d, int len) { assert((len%4) == 0); printf(" dumping %p len 0x%x\n", d, len);