Categories
Scala

Flexible Scala Time Profiling

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

Leave a Reply

Your email address will not be published. Required fields are marked *