]>
git.proxmox.com Git - mirror_frr.git/blob - pimd/pim_time.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright (C) 2008 Everton da Silva Marques
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
);
25 #endif /* PIM_TIME_H */