From d8c236bb44473b98cef1993a9692bff0c6c67593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kundr=C3=A1t?= Date: Sun, 22 Sep 2019 16:44:00 +0100 Subject: [PATCH] examples: do not measure time taken This is an equivalent of 9c9e3be9675a78aefae555c32596e8faff3585f3 for the other example. --- examples/path_requests_run.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/examples/path_requests_run.py b/examples/path_requests_run.py index d8dcbc338..a5fc979cd 100755 --- a/examples/path_requests_run.py +++ b/examples/path_requests_run.py @@ -35,7 +35,6 @@ from copy import copy, deepcopy from textwrap import dedent from math import ceil -import time #EQPT_LIBRARY_FILENAME = Path(__file__).parent / 'eqpt_config.json' @@ -263,7 +262,6 @@ def path_result_json(pathresult): if __name__ == '__main__': - start = time.time() args = parser.parse_args() basicConfig(level={2: DEBUG, 1: INFO, 0: CRITICAL}.get(args.verbose, DEBUG)) logger.info(f'Computing path requests {args.service_filename} into JSON format') @@ -331,8 +329,6 @@ def path_result_json(pathresult): print('\x1b[1;34;40m'+f'Propagating on selected path'+ '\x1b[0m') propagatedpths = compute_path_with_disjunction(network, equipment, rqs, pths) - end = time.time() - print(f'computation time {end-start}') print('\x1b[1;34;40m'+f'Result summary'+ '\x1b[0m') header = ['req id', ' demand',' snr@bandwidth',' snr@0.1nm',' Receiver minOSNR', ' mode', ' Gbit/s' , ' nb of tsp pairs']