ElapsedTime

com.avast.datadog4s.api.metric.ElapsedTime
See theElapsedTime companion object
trait ElapsedTime[A]

Representation of Elapsed time

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Abstract methods

def amount(instance: A, timeUnit: TimeUnit): Long

Return amount of elapsed timeUnits stored in instance. For example: given instance that represents 24 hours, amount(instance, TimeUnit.MINUTES) should return 1440 (24*60)

Return amount of elapsed timeUnits stored in instance. For example: given instance that represents 24 hours, amount(instance, TimeUnit.MINUTES) should return 1440 (24*60)

Attributes

Concrete methods

def contraMap[B](f: B => A): ElapsedTime[B]