We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3410cfe commit 17cbef5Copy full SHA for 17cbef5
extension/llm/runner/util.h
@@ -68,9 +68,9 @@ ET_EXPERIMENTAL void inline safe_printf(const char* piece) {
68
ET_EXPERIMENTAL long inline time_in_ms() {
69
// return time in milliseconds, for benchmarking the model speed
70
struct timespec time;
71
- // The `timespec_get` function is only available on Android API levels
72
- // 29 or later.
73
-#if defined(__ANDROID_API__) && __ANDROID_API__ < 29
+ // The `timespec_get` function is for windows time access. Some AOSP OS does
+ // not have timespec_get support.
+#if defined(__ANDROID_API__)
74
clock_gettime(CLOCK_REALTIME, &time);
75
#else
76
timespec_get(&time, TIME_UTC);
0 commit comments