Azure SDK for Embedded C
az_platform.h
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // SPDX-License-Identifier: MIT
3 
15 #ifndef _az_PLATFORM_H
16 #define _az_PLATFORM_H
17 
18 #include <azure/core/az_result.h>
19 
20 #include <stdbool.h>
21 #include <stdint.h>
22 
23 #include <azure/core/_az_cfg_prefix.h>
24 
39 AZ_NODISCARD az_result az_platform_clock_msec(int64_t* out_clock_msec);
40 
54 AZ_NODISCARD az_result az_platform_sleep_msec(int32_t milliseconds);
55 
56 #include <azure/core/_az_cfg_suffix.h>
57 
58 #endif // _az_PLATFORM_H
az_result.h
Definition of az_result and helper functions.
az_result
int32_t az_result
The type represents the various success and error conditions.
Definition: az_result.h:45
az_platform_clock_msec
AZ_NODISCARD az_result az_platform_clock_msec(int64_t *out_clock_msec)
Gets the platform clock in milliseconds.
az_platform_sleep_msec
AZ_NODISCARD az_result az_platform_sleep_msec(int32_t milliseconds)
Tells the platform to sleep for a given number of milliseconds.