// Start a timer
start := time.Now()
// Do something that take some time
for i:=1; i<100000000; i++{
}
// Stop the timer and get the elapsed time in seconds
elapsed := time.Since(start).Seconds()
fmt.Printf("Elapsed time: %.2f seconds\n", elapsed)
}