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 comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Wildcard SSL Certificates