import time
start = time.process_time_ns()
print("At the beginning of first example")
print("Process Time (in nanoseconds):", start, "\n")
n = 50
for i in range(1, n + 1):
print(i, end =' ')
print()
end = time.process_time_ns()
print("\nAt the end of the first example")
print("Process time (in nanoseconds):", end)
print("Elapsed time during the first example (in nanoseconds):", end-start)
start = time.process_time_ns()
print("\nAt the beginning of second example")
print("Process Time (in nanoseconds):", start, "\n")
n = 50
for i in range(1, n + 1):
print(i, end =' ')
print()
time.sleep(10)
end = time.process_time_ns()
print("\nAt the end of the second example")
print("Process time (in nanoseconds):", end)
print("Elapsed time during the second example (in nanoseconds):", end-start)