Use this snippet to quickly add nanosecond profiling to your application. http://stackoverflow.com/a/9160068/1896889
Simply wrap your blocks in `time { … }`
The time function will also return the result of your block, so you capture the result with `val result = time { … }`
Handy