mirror of https://github.com/meshcore-dev/MeshCore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
238 B
17 lines
238 B
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <cmath>
|
|
#include "Stream.h"
|
|
|
|
inline uint32_t g_mock_millis = 0;
|
|
|
|
using std::isnan;
|
|
|
|
inline uint32_t millis() {
|
|
return g_mock_millis;
|
|
}
|
|
|
|
inline void delay(uint32_t ms) {
|
|
g_mock_millis += ms;
|
|
}
|
|
|