Skip to content

Instantly share code, notes, and snippets.

@Rperry2174
Created January 25, 2021 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rperry2174/93ba8d94b966a0125d0db63e3414b353 to your computer and use it in GitHub Desktop.
Save Rperry2174/93ba8d94b966a0125d0db63e3414b353 to your computer and use it in GitHub Desktop.
# This would simulate a CPU running for 0.8 seconds
def foo():
# work(75000)
work(8000)
# This would simulate a CPU running for 2.5 seconds
def bar():
work(25000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment