aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/bsc/time_cc.h
AgeCommit message (Collapse)AuthorFilesLines
2021-11-16move time_cc to libosmocore osmo_time_ccNeels Hofmeyr1-157/+0
Related: SYS#4878 Depends: Iabb17a08e6e1a86f168cdb008fba05ecd4776bdd (libosmocore) Change-Id: Ica9f908a1a30f334a24c59471affa11225117e12
2021-11-10add time_cc API: cumlative counter for time, reported as rate_ctrNeels Hofmeyr1-0/+157
This is a candidate for adding to libosmocore (as osmo_time_cc), but let's first use this in osmo-bsc to make sure that it works as intended. I started out expecting to be done with this in half an hour, but I found out that accumulating elapsed time to an integer counter has a staggering amount of complexity to it, and a million pitfalls. The intended use is to report allAvailableSDCCHAllocated and allAvailableTCHAllocated performance indicators in OsmoBSC. Hopefully this will also be generally useful elsewhere, to be worth the effort. Related: SYS#4878 Change-Id: Icdd36f27cb54b2e1b940c9e6404ba9dd3692a310