pcircle
pcircle copied to clipboard
fprof tree walk time output option for seconds in fprof.py
For cases where comparing expected time from a tree walk scan would be convenient to have in seconds, would it be possible to include the following option with a flag?
143a144,145
> parser.add_argument("--showseconds", action="store_true",
> help="Display elapsed time in seconds")
621,622c623,628
< print(fmt_msg2.format("Tree walk time:",
< utils.conv_time(elapsed_time)))
---
> if args.showseconds:
> print(fmt_msg2.format("Tree walk time (s):",
> elapsed_time))
> else:
> print(fmt_msg2.format("Tree walk time:",
> utils.conv_time(elapsed_time)))