Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. import time
  2.  
  3.  
  4. titles = ("Clock", "Implementation", "Monotonic", "Adjustable", "Resolution")
  5. print("".join(str(x).ljust(30) for x in titles))
  6. print("".join(("-" * len(x)).ljust(30) for x in titles))
  7. for clock in ("time",
  8. "clock",
  9. "monotonic",
  10. "perf_counter",
  11. "process_time"):
  12. info = time.get_clock_info(clock)
  13. infos = [clock, info.implementation, info.monotonic, info.adjustable, info.resolution]
  14. print("".join(str(x).ljust(30) for x in infos))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement