Lines Matching refs:len
42 int AppendHumanMicros(uint64_t micros, char* output, int len, in AppendHumanMicros() argument
45 return snprintf(output, len, "%" PRIu64 " us", micros); in AppendHumanMicros()
47 return snprintf(output, len, "%.3lf ms", in AppendHumanMicros()
50 return snprintf(output, len, "%.3lf sec", in AppendHumanMicros()
53 return snprintf(output, len, "%02" PRIu64 ":%05.3f M:S", in AppendHumanMicros()
57 return snprintf(output, len, "%02" PRIu64 ":%02" PRIu64 ":%05.3f H:M:S", in AppendHumanMicros()
67 int AppendHumanBytes(uint64_t bytes, char* output, int len) { in AppendHumanBytes() argument
70 return snprintf(output, len, "%" PRIu64 "TB", bytes >> 40); in AppendHumanBytes()
72 return snprintf(output, len, "%" PRIu64 "GB", bytes >> 30); in AppendHumanBytes()
74 return snprintf(output, len, "%" PRIu64 "MB", bytes >> 20); in AppendHumanBytes()
76 return snprintf(output, len, "%" PRIu64 "KB", bytes >> 10); in AppendHumanBytes()
78 return snprintf(output, len, "%" PRIu64 "B", bytes); in AppendHumanBytes()