Is there a way in PHP to return the time that the query took to finish from PgSQL?
Sure:
function mt(){ $tmp = split(" ",microtime()); return $tmp[0]+$tmp[1]; } $start = mt(); ... run query here ... $stop = mt(); print $stop-$start;
Always kind of wondered how they did that. Thanks Sxooter.