I am creating a program for analyzing and generating queries. I was curious if there currently exists a method within SQLite such that I could query the time taken for a query
From within the sqlite3 command-line program you can do:
.timer ON select * from my_table;
This will print the CPU time taken for the query.