aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/utils/__init__.py
diff options
context:
space:
mode:
authorAymeric Augustin2013-10-17 20:48:50 +0200
committerAymeric Augustin2013-10-17 20:49:29 +0200
commit80dd45632aa21c667e841a1131c74e79d1518881 (patch)
tree9bfb22a6029f4c16592eb0df8e9912174aa56a19 /debug_toolbar/utils/__init__.py
parent59c6e0933d04ddecf6727d8e8671fc6ebf4ccfc7 (diff)
downloaddjango-debug-toolbar-80dd45632aa21c667e841a1131c74e79d1518881.tar.bz2
Simplify timing implementation.
Diffstat (limited to 'debug_toolbar/utils/__init__.py')
-rw-r--r--debug_toolbar/utils/__init__.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/debug_toolbar/utils/__init__.py b/debug_toolbar/utils/__init__.py
index ebd8b84..297c901 100644
--- a/debug_toolbar/utils/__init__.py
+++ b/debug_toolbar/utils/__init__.py
@@ -16,14 +16,6 @@ from django.utils.six.moves import socketserver
django_path = os.path.realpath(os.path.dirname(django.__file__))
socketserver_path = os.path.realpath(os.path.dirname(socketserver.__file__))
-
-def ms_from_timedelta(td):
- """
- Given a timedelta object, returns a float representing milliseconds
- """
- return (td.seconds * 1000) + (td.microseconds / 1000.0)
-
-
hide_django_sql = getattr(settings, 'DEBUG_TOOLBAR_CONFIG', {}).get('HIDE_DJANGO_SQL', True)