thneed: remove redundant function nanos_since_boot (#20329)

pull/20332/head
Dean Lee 4 years ago committed by GitHub
parent 63f1237e09
commit d023397ba9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      selfdrive/modeld/thneed/thneed.cc

@ -5,6 +5,7 @@
#include <string>
#include <string.h>
#include <errno.h>
#include "common/timing.h"
#include "common/clutil.h"
#include "thneed.h"
@ -17,12 +18,6 @@ map<pair<cl_kernel, int>, string> g_args;
map<pair<cl_kernel, int>, int> g_args_size;
map<cl_program, string> 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);

Loading…
Cancel
Save