RTRlib
Loading...
Searching...
No Matches
utils_private.h
Go to the documentation of this file.
1
/*
2
* This file is part of RTRlib.
3
*
4
* This file is subject to the terms and conditions of the MIT license.
5
* See the file LICENSE in the top level directory for more details.
6
*
7
* Website: http://rtrlib.realmv6.org/
8
*/
9
10
#ifndef LRTR_UTILS_PRIVATE_H
11
#define LRTR_UTILS_PRIVATE_H
12
13
#include <stdint.h>
14
#include <time.h>
15
22
int
lrtr_get_monotonic_time
(time_t *seconds);
23
32
uint32_t
lrtr_get_bits
(
const
uint32_t val,
const
uint8_t from,
const
uint8_t number);
33
34
#endif
lrtr_get_monotonic_time
int lrtr_get_monotonic_time(time_t *seconds)
Returns the current time of the CLOCK_MONOTONIC clock.
lrtr_get_bits
uint32_t lrtr_get_bits(const uint32_t val, const uint8_t from, const uint8_t number)
Extracts number bits from the passed uint32_t, starting at bit number from.
rtrlib
lib
utils_private.h
Generated on Sat Jul 19 2025 17:27:35 for RTRlib by
1.9.8