[libc-commits] [PATCH] D154446: [libc] Support timing information in libc tests

Jon Chesterfield via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Jul 5 12:00:37 PDT 2023


JonChesterfield added inline comments.


================
Comment at: libc/test/UnitTest/LibcTest.cpp:159
+            (duration * 1000 * 1000 * 1000) / CLOCKS_PER_SEC;
+        if (duration_ms != 0)
+          tlog << duration_ms << " ms)\n";
----------------
Overflow hazards abound here. I'm not totally sure what to do about them.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D154446



More information about the libc-commits mailing list