commit | b98478a1fecc5c451cbcebd00e456e622aa2ceab | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Fri May 17 19:15:08 2019 +0200 |
committer | Harald Welte <laforge@gnumonks.org> | Fri May 17 19:19:18 2019 +0200 |
tree | ab35418b0aed51fe16875e4110772686a75f78e7 | |
parent | 8a534f189b040c3d8aa5a5a322c22fff159f2fa3 [diff] |
libosmo_emb: Implement _gettimeofday() on simplistic 'jiffies' counter. We simply use the SysTick timer to count at 1KHz and fill a 64bit jiffies conunter. This counter is then used to fill tv_sec and tv_usec in the gettimeofday() implementation. NOTE: tv_sec will not indicate the seconds since the epoch (Jan 01, 1970), but rather since system startup. For the existign users, particularly osmo_timer, this doesn't matter. Change-Id: I9dbbb730996bde1e7039f790d76d7243739a8419