diff options
author | Alfred E. Heggestad <aeh@db.org> | 2014-09-21 19:25:34 +0200 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2014-09-21 19:25:34 +0200 |
commit | d0ae75c37e100f39013d9bf9aff2a36ee22ca12d (patch) | |
tree | 5d7559d64c4464143e7ee78b8b249a9f2af07757 /src/core.h | |
parent | 8f04c0368a665039b11238673eb375201f54b013 (diff) |
metric: add metric_init()
- metric_init calls tmr_start(). tmr_start must be called from the
re_main() thread.
Diffstat (limited to 'src/core.h')
-rw-r--r-- | src/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -226,6 +226,7 @@ struct metric { uint32_t n_bytes_last; }; +void metric_init(struct metric *metric); void metric_reset(struct metric *metric); void metric_add_packet(struct metric *metric, size_t packetsize); uint32_t metric_avg_bitrate(const struct metric *metric); |