drivers/boson: Use timespec struct from header.

This commit is contained in:
Kwabena W. Agyeman 2025-10-05 12:26:39 -07:00
parent 96034db229
commit b765b478a5

View File

@ -14,9 +14,9 @@
#ifndef _TIMEOUT_LOGIC_H #ifndef _TIMEOUT_LOGIC_H
#define _TIMEOUT_LOGIC_H #define _TIMEOUT_LOGIC_H
#include <sys/timespec.h>
#define CLOCK_MONOTONIC 0 #define CLOCK_MONOTONIC 0
struct timespec { long tv_sec; long tv_nsec; };
int clock_gettime(int _ignore, struct timespec *spec); int clock_gettime(int _ignore, struct timespec *spec);
double difftime(long current, long reference); double difftime(long current, long reference);