1234
start = current time Run your function end = current time duration = end - start
12345
start = current time result = Run your function end = current time duration = end - start cout result