aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authordrh <>2022-11-29 17:52:04 +0000
committerdrh <>2022-11-29 17:52:04 +0000
commit7741f3457a3c3e6785d987fe1be46351759851a4 (patch)
tree8128d07a6c7bef0636a6c4e11f86d4ee8c02091f /src/util.c
parent3c3896c9d68f1003edbd02f0657e875ae00dff5e (diff)
downloadsqlite-7741f3457a3c3e6785d987fe1be46351759851a4.tar.gz
sqlite-7741f3457a3c3e6785d987fe1be46351759851a4.zip
Change the handling of hwtime.h to make it easier to compile performance
measurement builds that make use of hwtime.h. This should not affect productions builds. FossilOrigin-Name: f64a224244743ab121371abd516fccbfc93c110e0952211764bd1b217e792c1b
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 32e9c2778..7a58fc876 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1713,3 +1713,10 @@ int sqlite3VListNameToNum(VList *pIn, const char *zName, int nName){
}while( i<mx );
return 0;
}
+
+/*
+** High-resolution hardware timer used for debugging and testing only.
+*/
+#if defined(VDBE_PROFILE) || defined(SQLITE_PERFORMANCE_TRACE)
+# include "hwtime.h"
+#endif