Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
391 B
1
Indexable
Never
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()