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
22int lrtr_get_monotonic_time(time_t *seconds);
23
32uint32_t lrtr_get_bits(const uint32_t val, const uint8_t from, const uint8_t number);
33
34#endif
int lrtr_get_monotonic_time(time_t *seconds)
Returns the current time of the CLOCK_MONOTONIC clock.
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.