Skip to content

Commit 9be5128

Browse files
committed
[BugFix] fix profile time on harmony
issue: f-5925102193
1 parent f02b65c commit 9be5128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inspector/cpuprofiler/profiler_time.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class TimeTicks {
3838
}
3939
ticks = (mach_absolute_time() * (info.numer / info.denom) /
4040
kNanosecondsPerMicrosecond);
41-
#elif defined(OS_ANDROID)
41+
#elif defined(OS_ANDROID) || defined(OS_HARMONY)
4242
struct timespec ts;
4343
if (clock_gettime(CLOCK_BOOTTIME, &ts) != 0) {
4444
ticks = 0;

0 commit comments

Comments
 (0)