Home
last modified time | relevance | path

Searched refs:ns_buffer (Results 1 – 1 of 1) sorted by relevance

/external/grpc-grpc/src/core/lib/gpr/
Dstring.cc61 char ns_buffer[11]; // '.' + 9 digits of precision in gpr_format_timespec() local
64 snprintf(ns_buffer, 11, ".%09d", tm.tv_nsec); in gpr_format_timespec()
69 if (ns_buffer[i] == '0' && ns_buffer[i + 1] == '0' && in gpr_format_timespec()
70 ns_buffer[i + 2] == '0') { in gpr_format_timespec()
71 ns_buffer[i] = '\0'; in gpr_format_timespec()
74 ns_buffer[0] = '\0'; in gpr_format_timespec()
81 gpr_asprintf(&full_time_str, "%s%sZ", time_buffer, ns_buffer); in gpr_format_timespec()