[libc-commits] [PATCH] D159118: [libc] Implement the 'clock()' function on the GPU

Johannes Doerfert via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Aug 29 09:44:03 PDT 2023


jdoerfert added inline comments.


================
Comment at: libc/src/time/gpu/clock.cpp:61-62
+    return clock_t(ticks / (GPU_CLOCKS_PER_SEC / CLOCKS_PER_SEC));
+  else
+    return clock_t(ticks * (CLOCKS_PER_SEC / GPU_CLOCKS_PER_SEC));
+}
----------------



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D159118/new/

https://reviews.llvm.org/D159118



More information about the libc-commits mailing list