Faster enginePins.stopPins() #3070
refactoring: reducing magic constants
This commit is contained in:
parent
50e04960a7
commit
f0cadf084b
|
@ -35,7 +35,7 @@ float Timer::getElapsedSeconds() const {
|
|||
}
|
||||
|
||||
float Timer::getElapsedSeconds(efitick_t nowNt) const {
|
||||
return 1e-6 * getElapsedUs(nowNt);
|
||||
return 1 / US_PER_SECOND_F * getElapsedUs(nowNt);
|
||||
}
|
||||
|
||||
float Timer::getElapsedUs(efitick_t nowNt) const {
|
||||
|
|
Loading…
Reference in New Issue