Searched refs:precision (Results 1 – 4 of 4) sorted by relevance
34 NET_DBG("precision: %x", pkt->precision); in sntp_pkt_dump()116 if (pkt->precision <= 0) { in parse_response()117 precision_us = (uint32_t)(USEC_PER_SEC + USEC_PER_SEC / 2) >> -pkt->precision; in parse_response()118 } else if (pkt->precision <= 10) { in parse_response()119 precision_us = (uint32_t)(USEC_PER_SEC + USEC_PER_SEC / 2) << pkt->precision; in parse_response()121 NET_DBG("SNTP packet precision out of range: %d", pkt->precision); in parse_response()
24 int8_t precision; member
135 static int net_value_to_udec(char *buf, uint32_t value, int precision) in net_value_to_udec() argument143 if (precision < 0) { in net_value_to_udec()144 precision = 1; in net_value_to_udec()150 if ((precision > i) || (temp != 0)) { in net_value_to_udec()151 precision = i; in net_value_to_udec()
815 The precision is determined by the resolution of the platform
Completed in 25 milliseconds