val start = System.currentTimeMillis

// do something

val end = System.currentTimeMillis

printf("Run Time = %f[s]\n", (end - start) / 1000.0)