2021-12-03 21:46:34 -08:00
|
|
|
/**
|
|
|
|
* @file global_mocks.cpp
|
|
|
|
*/
|
2021-05-07 14:43:24 -07:00
|
|
|
|
2021-08-03 19:05:01 -07:00
|
|
|
#include "pch.h"
|
2021-05-07 14:43:24 -07:00
|
|
|
|
|
|
|
#include "trigger_central.h"
|
|
|
|
#include "map_resize.h"
|
|
|
|
|
|
|
|
bool verboseMode = false;
|
|
|
|
|
|
|
|
int timeNowUs = 0;
|
|
|
|
|
2022-01-11 19:40:52 -08:00
|
|
|
efitimeus_t getTimeNowUs() {
|
2021-05-07 14:43:24 -07:00
|
|
|
return timeNowUs;
|
|
|
|
}
|
|
|
|
|
2022-09-11 10:06:03 -07:00
|
|
|
efitimesec_t getTimeNowS() {
|
2021-10-14 12:17:30 -07:00
|
|
|
return getTimeNowUs() / 1000 / 1000;
|
|
|
|
}
|
|
|
|
|
2022-01-11 19:40:52 -08:00
|
|
|
efitick_t getTimeNowNt() {
|
2021-05-07 14:43:24 -07:00
|
|
|
return getTimeNowUs() * US_TO_NT_MULTIPLIER;
|
|
|
|
}
|
|
|
|
|
|
|
|
void initLogging(LoggingWithStorage *logging, const char *name) {
|
|
|
|
}
|