Skip to content

Instantly share code, notes, and snippets.

@shehaaz
Last active June 23, 2016 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shehaaz/7ea265d8b43006d7b395a035c3479925 to your computer and use it in GitHub Desktop.
Save shehaaz/7ea265d8b43006d7b395a035c3479925 to your computer and use it in GitHub Desktop.
val time = Latency.measure[Unit](Kamon.metrics.histogram("awesomeHistogram"))
time(printInt(5))
Latency.measure(Kamon.metrics.histogram("awesomeHistogram"))(printInt(5))
def printInt(num: Int): Unit = {
print(num)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment