Untitled
Anonymous
plain_text
08/18/2021 9:35 AM
524 B
15
Indexable
import time
import json
def main():
time_stamps = []
for i in range(50_000):
time_stamps.append(time.time_ns())
start_time = time_stamps[0]
for i in range(50_000):
time_stamps[i] -= start_time
time_stamps[i] /= 10**9
with open('act2-result.json', 'w') as output:
json.dump(time_stamps, output)
if __name__ == '__main__':
main()
Editor is loading...