summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpgcli/main.py4
-rw-r--r--setup.py1
2 files changed, 4 insertions, 1 deletions
diff --git a/pgcli/main.py b/pgcli/main.py
index 500df16e..4781b129 100755
--- a/pgcli/main.py
+++ b/pgcli/main.py
@@ -10,6 +10,7 @@ import logging
import threading
import shutil
import functools
+import humanize
from time import time
from codecs import open
@@ -340,7 +341,8 @@ class PGCli(object):
pass
if self.pgspecial.timing_enabled:
- print('Time: %0.03fs' % query.total_time)
+ print('Time: %0.03fs (%s)' % (query.total_time,
+ humanize.time.naturaldelta(query.total_time)))
# Check if we need to update completions, in order of most
# to least drastic changes
diff --git a/setup.py b/setup.py
index 7198ef8f..cd0115f3 100644
--- a/setup.py
+++ b/setup.py
@@ -19,6 +19,7 @@ install_requirements = [
'psycopg2 >= 2.5.4',
'sqlparse == 0.1.16',
'configobj >= 5.0.6',
+ 'humanize >= 0.5.1',
]