mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
3b7c5e8adf
The next changes will provide a couple of tools using some common functions provided by this library. It provides basic wrappers for: - mainloop - logging - timestamp Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Tested-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Link: https://lore.kernel.org/r/20220420160933.347088-3-daniel.lezcano@linaro.org
12 lines
366 B
C
12 lines
366 B
C
/* SPDX-License-Identifier: LGPL-2.1+ */
|
|
/* Copyright (C) 2022, Linaro Ltd - Daniel Lezcano <daniel.lezcano@linaro.org> */
|
|
#ifndef __THERMAL_TOOLS_UPTIMEOFDAY_H
|
|
#define __THERMAL_TOOLS_UPTIMEOFDAY_H
|
|
#include <sys/sysinfo.h>
|
|
#include <sys/time.h>
|
|
|
|
int uptimeofday_init(void);
|
|
unsigned long getuptimeofday_ms(void);
|
|
struct timespec msec_to_timespec(int msec);
|
|
|
|
#endif
|