running time of selection sort

hello everyone , i have a code for selection sort and i wanna modify it to give me a running time , any help?