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