EricaSkerrett / bme590final

Final project (image processing)
GNU General Public License v3.0
0 stars 1 forks source link

Sep52/user metrics update (closes #21) #50

Closed sputney13 closed 5 years ago

sputney13 commented 5 years ago

user_metrics has keys for the user_email, the number of images uploaded, the number of images processed, the number of times they've processed any image with each of the 4 processing types, and the amount of time the last processing task took to run.

@EricaSkerrett for getting info for that last key, it looks like you can use the timeit library, and just put that code in each of the four image processing functions to get an output of the time it took to do that processing. Then I can update that key in user_metrics after calling on the image processing functions in the GET request.

https://docs.python.org/2/library/timeit.html