MCPcopy Index your code
hub / github.com/oshi/oshi / formatHertz

Method formatHertz

oshi-core/src/main/java/oshi/util/FormatUtil.java:147–149  ·  view source on GitHub ↗

Format hertz into a string to a rounded string representation. @param hertz Hertz. @return Rounded string representation of the hertz size.

(long hertz)

Source from the content-addressed store, hash-verified

145 * @return Rounded string representation of the hertz size.
146 */
147 public static String formatHertz(long hertz) {
148 return formatValue(hertz, "Hz");
149 }
150
151 /**
152 * Format arbitrary units into a string to a rounded string representation.

Callers 3

printCpuMethod · 0.95
testFormatHertzMethod · 0.95
toStringMethod · 0.95

Calls 1

formatValueMethod · 0.95

Tested by 2

printCpuMethod · 0.76
testFormatHertzMethod · 0.76