MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / formatReadableTime

Function formatReadableTime

src/Common/formatReadable.cpp:86–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void formatReadableTime(double ns, DB::WriteBuffer & out, int precision)
87{
88 const char * units[] = {" ns", " us", " ms", " s"};
89 formatReadable(ns, out, precision, units, sizeof(units) / sizeof(units[0]), 1000);
90}
91
92std::string formatReadableTime(double ns, int precision)
93{

Callers 3

startupMethod · 0.85
formatReadableValueFunction · 0.85

Calls 2

formatReadableFunction · 0.85
strMethod · 0.45

Tested by

no test coverage detected