1 -- SPDX-License-Identifier: GPL-2.0-only
5 package body HW
.Time
.Timer
6 with Refined_State
=> (Timer_State
=> null,
10 procedure Timer_Monotonic_Get
(MT
: out Interfaces
.C
.long
);
11 pragma Import
(C
, Timer_Monotonic_Get
, "timer_monotonic_get");
13 function Raw_Value_Min
return T
17 Microseconds
: Interfaces
.C
.long
;
19 Timer_Monotonic_Get
(Microseconds
);
20 return T
(Microseconds
);
23 function Raw_Value_Max
return T
26 return Raw_Value_Min
+ 1;