Database query execution times in Python?

pwnedd keith.hughitt at
Fri Aug 7 20:42:42 CEST 2009

Hi all,

I've been writing some code using libraries based on the Python Database API
2.0 (MySQLdb & pg), and so far things are working really well. There is one
thing that I have not been able to figure out how to do, however: 

Retrieve the time is took a given query to execute.

Does anyone know if this is possible?

Any help would be greatly appreciated.


View this message in context:
Sent from the Python - python-list mailing list archive at

More information about the Python-list mailing list