Measuring function time is quite necessary sometimes.
It is easy to implement this in other languages but not in Rust.
Therefore, this post will demonstrate some tricks to measure the function execution time.
From the easiest one to the reusable version. Other implementation will also be included, such as Python and Golang.