Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increasing delay of UA_DateTime_Now() on embedded device #6439

Closed
1 task done
llukic opened this issue Apr 24, 2024 · 2 comments
Closed
1 task done

Increasing delay of UA_DateTime_Now() on embedded device #6439

llukic opened this issue Apr 24, 2024 · 2 comments

Comments

@llukic
Copy link

llukic commented Apr 24, 2024

Due to gettimeofday() having some shortcomings, I suppose using clock_gettime() for UA_DateTime_Now().

"POSIX.1-2008 marks gettimeofday() as obsolete,
recommending the use of clock_gettime(2) instead."

"The time returned by gettimeofday() is affected by discontinuous
jumps in the system time (e.g., if the system administrator
manually changes the system time). If you need a monotonically
increasing clock, see clock_gettime(2)."

  • Operating system: embedded linux
@jpfr
Copy link
Member

jpfr commented Apr 26, 2024

We also have UA_DateTime_nowMonotonic().
Why can't you use that?

@jpfr
Copy link
Member

jpfr commented Apr 30, 2024

Just reopen if required.

@jpfr jpfr closed this as completed Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants