MCPcopy Create free account
hub / github.com/catboost/catboost / HumanReadable

Function HumanReadable

util/stream/format.h:402–404  ·  view source on GitHub ↗

* Output manipulator for printing `TDuration` values. * * When written into a `IOutputStream`, writes out the provided `TDuration` * in auto-adjusted human-readable format. * * Example usage: * @code * stream << HumanReadable(TDuration::MicroSeconds(100)); // Will output "100us" * stream << HumanReadable(TDuration::Seconds(3672)); // Will output "1h 1m 12s" * @endcode * * @param

Source from the content-addressed store, hash-verified

400 * @param value Value to output.
401 */
402static constexpr ::NFormatPrivate::THumanReadableDuration HumanReadable(const TDuration duration) noexcept {
403 return ::NFormatPrivate::THumanReadableDuration(duration);
404}
405
406/**
407 * Output manipulator for writing out human-readable number of elements / memory

Callers 7

ApplyFuncTotokenizedTextFunction · 0.85
BuildLevelMethod · 0.85
BuildImplMethod · 0.85
OutputProfileMethod · 0.85
OutputProfileMethod · 0.85
LogMethod · 0.85
Y_UNIT_TESTFunction · 0.85

Calls 1

Tested by

no test coverage detected