2023-02-08 13:17:09 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2015-02-04 07:01:14 +01:00
|
|
|
/*
|
2017-05-13 10:25:29 +02:00
|
|
|
* PIM for Quagga
|
|
|
|
* Copyright (C) 2008 Everton da Silva Marques
|
|
|
|
*/
|
2015-02-04 07:01:14 +01:00
|
|
|
|
|
|
|
#ifndef PIM_TIME_H
|
|
|
|
#define PIM_TIME_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include <zebra.h>
|
2023-03-07 20:22:48 +01:00
|
|
|
#include "frrevent.h"
|
2015-02-04 07:01:14 +01:00
|
|
|
|
|
|
|
int64_t pim_time_monotonic_sec(void);
|
|
|
|
int64_t pim_time_monotonic_dsec(void);
|
2016-10-27 18:26:00 +02:00
|
|
|
int64_t pim_time_monotonic_usec(void);
|
2015-02-04 07:01:14 +01:00
|
|
|
int pim_time_mmss(char *buf, int buf_size, long sec);
|
2022-03-01 22:18:12 +01:00
|
|
|
void pim_time_timer_to_mmss(char *buf, int buf_size, struct event *t);
|
|
|
|
void pim_time_timer_to_hhmmss(char *buf, int buf_size, struct event *t);
|
2015-02-04 07:01:14 +01:00
|
|
|
void pim_time_uptime(char *buf, int buf_size, int64_t uptime_sec);
|
|
|
|
void pim_time_uptime_begin(char *buf, int buf_size, int64_t now, int64_t begin);
|
2022-03-01 22:18:12 +01:00
|
|
|
long pim_time_timer_remain_msec(struct event *t_timer);
|
2015-02-04 07:01:14 +01:00
|
|
|
|
|
|
|
#endif /* PIM_TIME_H */
|