Skip to content

Instantly share code, notes, and snippets.

@guyjacks
Created May 6, 2017 20:48
Show Gist options
  • Save guyjacks/15cd1a354f208a971ce11482352b6041 to your computer and use it in GitHub Desktop.
Save guyjacks/15cd1a354f208a971ce11482352b6041 to your computer and use it in GitHub Desktop.
import time
from matchtx_api.mtx.models import Case
start = time.time()
case = Case.objects.get(pk=1)
for rule in case.selected_biopsy.rules.all():
print(rule.name())
stop = time.time()
print ('done')
print('took {0} seconds'.format((stop - start) * 1000.0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment