Change in libosmocore[master]: Add function to estimate elapsed time

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/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Sun Dec 30 23:43:47 UTC 2018


Pau Espin Pedrol has posted comments on this change. ( https://gerrit.osmocom.org/5103 )

Change subject: Add function to estimate elapsed time
......................................................................


Patch Set 6:

(1 comment)

https://gerrit.osmocom.org/#/c/5103/6/src/timer.c
File src/timer.c:

https://gerrit.osmocom.org/#/c/5103/6/src/timer.c@196
PS6, Line 196: time_t osmo_time_elapsed(const struct timespec *from, enum osmo_elapsed kind)
You are not specifying here it must be used with a monotonic clock.

TBH, I like this API as a timespec to different time magnitude conversions,but I'd drop the osmo_clock_gettime(now) from here.

Let user manage the time sources himself through osmo_clock_gettime and timersub and in this API simply do the conversion of this timespec.



-- 
To view, visit https://gerrit.osmocom.org/5103
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I83d865ff633a7ebda2c943477205fd31aceda277
Gerrit-Change-Number: 5103
Gerrit-PatchSet: 6
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Comment-Date: Sun, 30 Dec 2018 23:43:47 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181230/46684a64/attachment.htm>


More information about the gerrit-log mailing list