Skip to content

Commit a5d3022

Browse files
committed
fix arduino build
1 parent 380ca30 commit a5d3022

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Helpers.h

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ the LICENSE file.
1515
#if defined(__linux__)
1616
#include <chrono> // NOLINT [build/c++11]
1717
#define vw_millis() std::chrono::duration_cast<std::chrono::duration<uint32_t, std::milli>>(std::chrono::system_clock::now().time_since_epoch()).count()
18+
#else
19+
#define vw_millis() millis()
1820
#endif
1921

2022
#define vw_abort() abort()

0 commit comments

Comments
 (0)