Skip to content

Instantly share code, notes, and snippets.

@abhioncbr
Created March 24, 2020 23:29
Show Gist options
  • Save abhioncbr/a49544ea6fb5193bef51fdbfe316665e to your computer and use it in GitHub Desktop.
Save abhioncbr/a49544ea6fb5193bef51fdbfe316665e to your computer and use it in GitHub Desktop.
import time
some_str = ''
while True:
some_str = some_str + ' * hello * ' * 1024000
print(some_str)
# sleep for sometime
print('Before: %s' % time.ctime())
time.sleep(20)
print('After: %s\n' % time.ctime())
# sleep again for sometime
print('Before: %s' % time.ctime())
time.sleep(360)
print('After: %s\n' % time.ctime())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment