rusefi-1/unit_tests/global_mocks.cpp

28 lines
437 B
C++

/**
* @file global_mocks.cpp
*/
#include "pch.h"
#include "trigger_central.h"
#include "map_resize.h"
bool verboseMode = false;
int timeNowUs = 0;
efitimeus_t getTimeNowUs(void) {
return timeNowUs;
}
efitimesec_t getTimeNowSeconds(void) {
return getTimeNowUs() / 1000 / 1000;
}
efitick_t getTimeNowNt(void) {
return getTimeNowUs() * US_TO_NT_MULTIPLIER;
}
void initLogging(LoggingWithStorage *logging, const char *name) {
}