mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-05 18:21:54 +00:00
Added time functions
This commit is contained in:
28
include/sta/devices/arduino/time.hpp
Normal file
28
include/sta/devices/arduino/time.hpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef STA_DEVICES_ARDUINO_TIME_HPP
|
||||
#define STA_DEVICES_ARDUINO_TIME_HPP
|
||||
|
||||
#include <sta/config.hpp>
|
||||
#ifdef STA_PLATFORM_ARDUINO
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace sta
|
||||
{
|
||||
/**
|
||||
* @brief The current time in milliseconds.
|
||||
*
|
||||
* @return uint32_t Returns current time in milliseconds.
|
||||
*/
|
||||
uint32_t now();
|
||||
|
||||
/**
|
||||
* @brief The current time in microseconds.
|
||||
*
|
||||
* @return uint32_t Returns the current time in microseconds.
|
||||
*/
|
||||
uint32_t nowUs();
|
||||
} // namespace sta
|
||||
|
||||
#endif // STA_PLATFORM_ARDUINO
|
||||
|
||||
#endif // STA_DEVICES_ARDUINO_TIME_HPP
|
Reference in New Issue
Block a user