How do you time a function in Go and return its runtime in milliseconds? How do you time a function in Go and return its runtime in milliseconds? go go