DECLARE @StartTime datetime,@EndTime datetime SELECT @StartTime=GETDATE() select distinct born_on.name from born_on,died_on where (FLOOR((\'2012-01-30\'-born_on.
If you mean in psql, rather than some program you are writing, use \? for the help, and see:
\?
\timing [on|off] toggle timing of commands (currently off)
And then you get output like:
# \timing on Timing is on. # select 1234; ?column? ---------- 1234 (1 row) Time: 0.203 ms