How to accurately measure query time in PostgreSQL (because EXPLAIN ANALYZE does not seem to do it)?
From a_horse_with_no_name in the comments,


  The time reported by explain (analyze) indeed does not include the time it takes to send the data to the SQL client. It is the time the server needed to completely prepare the result so that it could be sent to the driver. As any delay after that is completely up to the combination of the SQL client and the network between client &amp; server it's impossible for explain to show that


That's pretty much all there is too it. One of them is server side, the other network side.