1 // =================================
 2 // Copyright (c) 2021 Seppo Laakko
 3 // Distributed under the MIT license
 4 // =================================
 5 
 6 #ifndef CMAJOR_RT_TIME_INCLUDED
 7 #define CMAJOR_RT_TIME_INCLUDED
 8 
 9 #include <cmajor/rt/RtApi.hpp>
10 #include <stdint.h>
11 
12 extern "C" int64_t RtNow();
13 extern "C" void RtSleep(int64_t nanoSeconds);
14 extern "C" void RtGetCurrentDate(int16_t* year, int8_t* month, int8_t* day);
15 extern "C" void RtGetCurrentDateTime(int16_t* year, int8_t* month, int8_t* day, int32_t* secs);
16 extern "C" int64_t RtGetCurrentTime();
17 
18 #endif // CMAJOR_RT_TIME_INCLUDED