buildgraph: show build time

This commit is contained in:
Laura Klünder 2016-12-05 13:46:33 +01:00
parent 762cb6e317
commit 82a859e958

View file

@ -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()