All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gapt.utils.time.scala Maven / Gradle / Ivy

The newest version!
package gapt.utils

object time {
  private val nLine = sys.props("line.separator")

  def apply[T](f: => T): T = {
    val start = java.lang.System.currentTimeMillis()
    val r = f
    println(nLine + "time: " + (java.lang.System.currentTimeMillis() - start) + " ms" + nLine)
    r
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy