]> git.proxmox.com Git - mirror_frr.git/blob - pimd/pim_time.h
Merge pull request #13522 from LabNConsulting/chopps/fix-bgp-test
[mirror_frr.git] / pimd / pim_time.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * PIM for Quagga
4 * Copyright (C) 2008 Everton da Silva Marques
5 */
6
7 #ifndef PIM_TIME_H
8 #define PIM_TIME_H
9
10 #include <stdint.h>
11
12 #include <zebra.h>
13 #include "frrevent.h"
14
15 int64_t pim_time_monotonic_sec(void);
16 int64_t pim_time_monotonic_dsec(void);
17 int64_t pim_time_monotonic_usec(void);
18 int pim_time_mmss(char *buf, int buf_size, long sec);
19 void pim_time_timer_to_mmss(char *buf, int buf_size, struct event *t);
20 void pim_time_timer_to_hhmmss(char *buf, int buf_size, struct event *t);
21 void pim_time_uptime(char *buf, int buf_size, int64_t uptime_sec);
22 void pim_time_uptime_begin(char *buf, int buf_size, int64_t now, int64_t begin);
23 long pim_time_timer_remain_msec(struct event *t_timer);
24
25 #endif /* PIM_TIME_H */