Z-Wave Protocol Controller Reference
zwapi_timestamp.h
Go to the documentation of this file.
1/******************************************************************************
2 * # License
3 * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
4 ******************************************************************************
5 * The licensor of this software is Silicon Laboratories Inc. Your use of this
6 * software is governed by the terms of Silicon Labs Master Software License
7 * Agreement (MSLA) available at
8 * www.silabs.com/about-us/legal/master-software-license-agreement. This
9 * software is distributed to you in Source Code format and is governed by the
10 * sections of the MSLA applicable to Source Code.
11 *
12 *****************************************************************************/
13
21#ifndef ZWAPI_TIMER_H
22#define ZWAPI_TIMER_H
23
24#include <stdbool.h>
25#include "zwapi_timestamp_platform.h" // Include platform specific timestamp definition
26#ifdef __cplusplus
27extern "C" {
28#endif
29
31
38void zwapi_timestamp_get(zwapi_timestamp_t *timestamp, int period_ms);
39
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif // ZWAPI_TIMER_H
Definition: zwapi_timestamp_platform.h:28
bool zwapi_is_timestamp_elapsed(const zwapi_timestamp_t *timestamp)
compare the current timestamp with the timestamp passed as an argument
Definition: zwapi_timestamp.c:32
void zwapi_timestamp_get(zwapi_timestamp_t *timestamp, int period_ms)
get the timestamp
Definition: zwapi_timestamp.c:22
Platform specific zwapi timestamp definitions.