https://www.codeguru.co.in/2022/01/how-to-measure-time-taken-by-function.html