Пример #1
0
static void timeInfo(void) {
    scheduleMsg(logger, "chTimeNow as seconds = %d", getTimeNowSeconds());
    scheduleMsg(logger, "hal seconds = %d", halTime.get() / 168000000LL);

#if EFI_RTC || defined(__DOXYGEN__)
    int unix = rtcGetTimeUnixSec(&RTCD1) - rtcStartTime;
    scheduleMsg(logger, "unix seconds = %d", unix);
#endif
}
Пример #2
0
//todo: macro to save method invocation
efitick_t getTimeNowNt(void) {
	return halTime.get();
}