add performance logging

This commit is contained in:
Squibid 2025-11-14 10:54:10 -05:00
parent 73c2acd37e
commit 1f96830f10
Signed by: squibid
GPG key ID: BECE5684D3C4005D
5 changed files with 71 additions and 1 deletions

View file

@ -18,3 +18,11 @@ extern int explain;
#else
#define E(...)
#endif
#ifdef PERF
#define PS() long __start = clock()
#define PE() l("%s: %fs", __func__, ((double) (clock() - __start)) / CLOCKS_PER_SEC)
#else
#define PS()
#define PE()
#endif