xref: /openbmc/linux/tools/thermal/lib/uptimeofday.h (revision 3b7c5e8a)
1*3b7c5e8aSDaniel Lezcano /* SPDX-License-Identifier: LGPL-2.1+ */
2*3b7c5e8aSDaniel Lezcano /* Copyright (C) 2022, Linaro Ltd - Daniel Lezcano <daniel.lezcano@linaro.org> */
3*3b7c5e8aSDaniel Lezcano #ifndef __THERMAL_TOOLS_UPTIMEOFDAY_H
4*3b7c5e8aSDaniel Lezcano #define __THERMAL_TOOLS_UPTIMEOFDAY_H
5*3b7c5e8aSDaniel Lezcano #include <sys/sysinfo.h>
6*3b7c5e8aSDaniel Lezcano #include <sys/time.h>
7*3b7c5e8aSDaniel Lezcano 
8*3b7c5e8aSDaniel Lezcano int uptimeofday_init(void);
9*3b7c5e8aSDaniel Lezcano unsigned long getuptimeofday_ms(void);
10*3b7c5e8aSDaniel Lezcano struct timespec msec_to_timespec(int msec);
11*3b7c5e8aSDaniel Lezcano 
12*3b7c5e8aSDaniel Lezcano #endif
13