Changeset 79729d5 in flex_extract.git for source/python/mods/profiling.py
- Timestamp:
- Mar 8, 2019, 4:07:28 PM (5 years ago)
- Branches:
- master, ctbto, dev
- Children:
- d727af2
- Parents:
- 82c2959
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/python/mods/profiling.py
r25b14be r79729d5 1 #!/usr/bin/env python 1 #!/usr/bin/env python3 2 2 # -*- coding: utf-8 -*- 3 3 #************************************************************************ … … 66 66 result = fn(*args, **kwargs) 67 67 t2 = time.time() 68 print("@timefn:" + fn. func_name+ " took " + str(t2 - t1) + " seconds")68 print("@timefn:" + fn.__name__ + " took " + str(t2 - t1) + " seconds") 69 69 70 70 return result
Note: See TracChangeset
for help on using the changeset viewer.