Skip to content

net: Zephyr's SNTP API time precision is not adequate #15596

@pfalcon

Description

@pfalcon

Currently available sntp_request() call returns time in seconds, completely ignoring fractional second value provided by SNTP. Second-level precision is clearly not adequate for the state of the art of technology.

Possible solutions:

  • Returned precise time with fractional seconds as SNTP fixed-point number.
  • Return it as POSIX struct timeval (converting fractional seconds to microseconds).
  • Return it as POSIX struct timespec (converting fractional seconds to nanoseconds).

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions