mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-06 10:27:34 +00:00
Added time functions
This commit is contained in:
19
src/devices/arduino/time.cpp
Normal file
19
src/devices/arduino/time.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <sta/devices/arduino/time.hpp>
|
||||
|
||||
#ifdef STA_PLATFORM_ARDUINO
|
||||
#include <sta/devices/arduino/hal.hpp>
|
||||
|
||||
namespace sta
|
||||
{
|
||||
uint32_t now()
|
||||
{
|
||||
return millis();
|
||||
}
|
||||
|
||||
uint32_t nowUs()
|
||||
{
|
||||
return micros();
|
||||
}
|
||||
} // namespace sta
|
||||
|
||||
#endif // STA_PLATFORM_ARDUINO
|
Reference in New Issue
Block a user