mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-12-16 08:38:03 +00:00
21 lines
305 B
C++
21 lines
305 B
C++
#include <sta/time.hpp>
|
|
|
|
#include <sta/config.hpp>
|
|
#ifdef STA_PLATFORM_ARDUINO
|
|
#include <sta/devices/arduino/hal.hpp>
|
|
|
|
namespace sta
|
|
{
|
|
uint32_t timeMs()
|
|
{
|
|
return millis();
|
|
}
|
|
|
|
uint32_t timeUs()
|
|
{
|
|
return micros();
|
|
}
|
|
} // namespace sta
|
|
|
|
#endif // STA_PLATFORM_ARDUINO
|