Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from array import array
- import time
- class Foo(object): pass
- def createArray():
- return array('f', range(1000))
- last = time.time()
- while 1:
- now = time.time()
- delta = now - last
- last = now
- if delta > 16.0/1000.0:
- print 'here'
- time.sleep(10.0/1000.0)
- for _ in range(100):
- b = Foo()
- a = [1,2,3]*100
- c = createArray()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement