libosmocore[master]: NS: use monotonic clock

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Max gerrit-no-reply at lists.osmocom.org
Wed Jan 17 11:14:33 UTC 2018


Patch Set 5:

Those are 2 different things:
1) osmo_gettimeofday() used inside libosmocore for elapsed time computations in osmo_timers_*()
2) osmo_gettimeofday() used externally for elapsed time computations

Those are pretty-much independent. The main difference is that corresponding "struct timeval" is internal parameter in 1) and managed by caller in 2). Because of that moving to monotonic time in 1) won't help with 2) - we still have to go and manually change it. Similarly, moving 2) to monotonic time won't affect 1) at all.

This patch series address case 2) only. The 1) is more intrusive because it's also used to mock time in tests.

-- 
To view, visit https://gerrit.osmocom.org/5104
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ib6949601a80747f0de1a05e0790a1bace209efbf
Gerrit-PatchSet: 5
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-HasComments: No



More information about the gerrit-log mailing list