From 82a859e95847af4241e8d8e52c6988ae63e9f91f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Mon, 5 Dec 2016 13:46:33 +0100 Subject: [PATCH] buildgraph: show build time --- src/c3nav/routing/management/commands/buildgraph.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/c3nav/routing/management/commands/buildgraph.py b/src/c3nav/routing/management/commands/buildgraph.py index 23759bd2..0379f831 100644 --- a/src/c3nav/routing/management/commands/buildgraph.py +++ b/src/c3nav/routing/management/commands/buildgraph.py @@ -9,8 +9,10 @@ class Command(BaseCommand): help = 'build the routing graph' def handle(self, *args, **options): + start = time.time() graph = Graph() graph.build() + print('Built in %.4fs' % (time.time() - start)) start = time.time() graph.save()