Class Unit
Object
Unit
Some pre-defined units for convenience. You can create your own units with
new Unit("myUnit");Note that in Prometheus, units are largely based on SI base units (seconds, bytes, joules, grams, meters, ratio, volts, amperes, and Celsius).
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
static double
kiloBytesToBytes
(double kilobytes) static double
millisToSeconds
(long millis) static double
nanosToSeconds
(long nanos) static double
secondsToMillis
(double seconds) toString()
-
Field Details
-
RATIO
-
SECONDS
-
BYTES
-
CELSIUS
-
JOULES
-
GRAMS
-
METERS
-
VOLTS
-
AMPERES
-
-
Constructor Details
-
Unit
-
-
Method Details