mirror of https://github.com/FOME-Tech/fome-fw.git
common getTimeNowS
This commit is contained in:
parent
54a4eed7d7
commit
be2c04813a
|
@ -19,6 +19,8 @@ efitimeus_t getTimeNowUs() {
|
||||||
return NT2US(getTimeNowNt());
|
return NT2US(getTimeNowNt());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* !EFI_UNIT_TEST */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Integer number of seconds since ECU boot.
|
* Integer number of seconds since ECU boot.
|
||||||
* 31,710 years - would not overflow during our life span.
|
* 31,710 years - would not overflow during our life span.
|
||||||
|
@ -26,5 +28,3 @@ efitimeus_t getTimeNowUs() {
|
||||||
int64_t getTimeNowS() {
|
int64_t getTimeNowS() {
|
||||||
return getTimeNowUs() / US_PER_SECOND;
|
return getTimeNowUs() / US_PER_SECOND;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !EFI_UNIT_TEST */
|
|
||||||
|
|
|
@ -15,10 +15,6 @@ efitimeus_t getTimeNowUs() {
|
||||||
return timeNowUs;
|
return timeNowUs;
|
||||||
}
|
}
|
||||||
|
|
||||||
int64_t getTimeNowS() {
|
|
||||||
return getTimeNowUs() / 1000 / 1000;
|
|
||||||
}
|
|
||||||
|
|
||||||
efitick_t getTimeNowNt() {
|
efitick_t getTimeNowNt() {
|
||||||
return getTimeNowUs() * US_TO_NT_MULTIPLIER;
|
return getTimeNowUs() * US_TO_NT_MULTIPLIER;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue