Skip to content

Instantly share code, notes, and snippets.

@GitHubEmploy
Created June 3, 2022 18:15
Show Gist options
  • Save GitHubEmploy/9222d447ac141ae523af2c1fdbbb619f to your computer and use it in GitHub Desktop.
Save GitHubEmploy/9222d447ac141ae523af2c1fdbbb619f to your computer and use it in GitHub Desktop.
import time
import numpy as np
s = time.time()
tsum = np.sum(np.arange(100000000))
print(f'Sum: {tsum}')
print(f'Duration: {time.time() - s} seconds')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment