Skip to content

Instantly share code, notes, and snippets.

@deanwampler
Created March 23, 2020 23:41
Show Gist options
  • Save deanwampler/5d9f08df29911df3248e54574d032b14 to your computer and use it in GitHub Desktop.
Save deanwampler/5d9f08df29911df3248e54574d032b14 to your computer and use it in GitHub Desktop.
start = time.time()
objs = [(i, ray.get(rbusy.remote(1.0)), time.time() - start) for i in range(5)]
end = time.time() - start
print('duration: %6.3f seconds' % (time.time() - start))
for i,obj,t in list(objs):
print('%d: %s (time: %6.3f seconds)' % (i, obj, t))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment