From 99bb340839cfb2cdb50ea46fb1860f6658190c77 Mon Sep 17 00:00:00 2001 From: Liu Liu Date: Thu, 14 Mar 2024 00:46:17 -0400 Subject: [PATCH] Remove mach_absolute_time reference. --- lib/nnc/ccv_nnc_cmd.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/nnc/ccv_nnc_cmd.c b/lib/nnc/ccv_nnc_cmd.c index eaaf31cb9..d2205776d 100644 --- a/lib/nnc/ccv_nnc_cmd.c +++ b/lib/nnc/ccv_nnc_cmd.c @@ -9,11 +9,6 @@ #include #include -#ifdef __MACH__ -#include -#include -#endif - typedef struct { const uint32_t cmd; const char* name; @@ -304,13 +299,9 @@ int ccv_nnc_cmd_enforce_inplace(const ccv_nnc_cmd_t cmd, const int input_idx, co // This returns absolute time. uint64_t ccv_nnc_cmd_mono_time(void) { -#ifdef __MACH__ - return mach_absolute_time(); -#else struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); return ts.tv_sec * 1000000000ULL + ts.tv_nsec; -#endif } uint32_t ccv_nnc_cmd_find_backend(const ccv_nnc_cmd_t cmd, const int tensor_memory, const int tensor_formats, const int tensor_datatypes)