buildgraph: show build time
This commit is contained in:
parent
762cb6e317
commit
82a859e958
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue