After logging into PostgreSQL terminal, just run the following command on PostgreSQL terminal to turn on the timing.
mydb=> \timingTiming is on.
mydb=> \timingTiming is off.