I am calling a function to download a file from sharepoint and upload to sql server database. I am logging the information success and failure in a table. how can i calculate total time that takes during the execution of this function?
like:
start_time=datetime.now()
function call
end_time=datetime.now()
total=end_time-start_time
please suggest the working query, i am running out of time.