diff --git a/src/cycleclock.h b/src/cycleclock.h index 20927ea5..04f094fe 100644 --- a/src/cycleclock.h +++ b/src/cycleclock.h @@ -173,7 +173,7 @@ inline BENCHMARK_ALWAYS_INLINE int64_t Now() { struct timeval tv; gettimeofday(&tv, nullptr); return static_cast(tv.tv_sec) * 1000000 + tv.tv_usec; -#elif defined(__loongarch__) +#elif defined(__loongarch__) || defined(__csky__) struct timeval tv; gettimeofday(&tv, nullptr); return static_cast(tv.tv_sec) * 1000000 + tv.tv_usec;