Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- titles = ("Clock", "Implementation", "Monotonic", "Adjustable", "Resolution")
- print("".join(str(x).ljust(30) for x in titles))
- print("".join(("-" * len(x)).ljust(30) for x in titles))
- for clock in ("time",
- "clock",
- "monotonic",
- "perf_counter",
- "process_time"):
- info = time.get_clock_info(clock)
- infos = [clock, info.implementation, info.monotonic, info.adjustable, info.resolution]
- print("".join(str(x).ljust(30) for x in infos))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement