diff options
Diffstat (limited to 'bin/fg21sim')
| -rwxr-xr-x | bin/fg21sim | 12 | 
1 files changed, 8 insertions, 4 deletions
| diff --git a/bin/fg21sim b/bin/fg21sim index eb56df4..3362888 100755 --- a/bin/fg21sim +++ b/bin/fg21sim @@ -76,10 +76,14 @@ def main():      fg.simulate()      fg.postprocess() -    t1_stop = time.perf_counter() -    t2_stop = time.process_time() -    logger.info("Elapsed time: %.1f [min]" % ((t1_stop-t1_start)/60)) -    logger.info("CPU process time: %.1f [min]" % ((t2_stop-t2_start)/60)) +    t1_cost = time.perf_counter() - t1_start +    t2_cost = time.process_time() - t2_start +    if t1_cost <= 3*60: +        logger.info("Elapsed time: %.1f [sec]" % t1_cost) +        logger.info("CPU process time: %.1f [sec]" % t2_cost) +    else: +        logger.info("Elapsed time: %.1f [min]" % (t1_cost/60)) +        logger.info("CPU process time: %.1f [min]" % (t2_cost/60))  if __name__ == "__main__": | 
