Streamlit spinner

I am using streamlit spinner end after the execution of a function. How do i know how much time the function takes to execute till the spinner would be shown?

Hi @Als1510 ,
do you have code to paste?

Would you be looking for something like this:

import time
start = 0
end = 0

with st.spinner(...):
  start = time.time()
  # stuff being done here
  end = time.time()

st.write(end - start)