Google Cloud IoT device SDK for embedded C  1.0.2
iotc_bsp_time.h
Go to the documentation of this file.
1 /* Copyright 2018-2020 Google LLC
2  *
3  * This is part of the Google Cloud IoT Device SDK for Embedded C.
4  * It is licensed under the BSD 3-Clause license; you may not use this file
5  * except in compliance with the License.
6  *
7  * You may obtain a copy of the License at:
8  * https://opensource.org/licenses/BSD-3-Clause
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef __IOTC_BSP_TIME_H__
18 #define __IOTC_BSP_TIME_H__
19 
30 #include <iotc_time.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
39 void iotc_bsp_time_init();
40 
45 
50 
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif /* __IOTC_BSP_TIME_H__ */
iotc_time_t iotc_bsp_time_getcurrenttime_milliseconds()
Gets the milliseconds since Epoch.
void iotc_bsp_time_init()
Initializes the platform-specific timekeeping requirements.
iotc_time_t iotc_bsp_time_getmonotonictime_milliseconds()
Gets the monotonic time in milliseconds.
iotc_time_t iotc_bsp_time_getcurrenttime_seconds()
Gets the seconds since Epoch.