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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublekiloBytesToBytes(double kilobytes) static doublemillisToSeconds(long millis) static doublenanosToSeconds(long nanos) static doublesecondsToMillis(double seconds) toString()