Faster enginePins.stopPins() #3070
refactoring: reducing magic constants
This commit is contained in:
parent
f08c59c8e6
commit
caea5283ae
|
@ -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