Update commander.py

This commit is contained in:
Richard Bronkhorst 2023-06-12 18:35:24 +02:00
parent 8bad7e4690
commit 2ad020b018

View File

@ -77,3 +77,15 @@ class Commander(CommandLine):
total += 1
dur = time() - start_time
print(f'{total} jumpgates in {dur:.2f} seconds')
start_time = time()
total = 0
for m in self.store.all('', Waypoint, True):
total += 1
dur = time() - start_time
print(f'{total} waypoints in {dur:.2f} seconds')
start_time = time()
total = 0
for m in self.store.all('', System, True):
total += 1
dur = time() - start_time
print(f'{total} systems in {dur:.2f} seconds')