getOffsetSec() to be squashed to getOffset(TimedObject::Units::Sec)getOffsetMin() to be squashed to getOffset(TimedObject::Units::Min)
and so on...
where
TimedObject {
Units { double Sec = 1000; double Min = 60000; ... }
}
Decreases the function space clutter but makes code generally longer, I think it's more beneficial this way as it's clearer and we don't have to declare multiple functions for any function that requires unit conversion
getOffsetSec()
to be squashed togetOffset(TimedObject::Units::Sec)
getOffsetMin()
to be squashed togetOffset(TimedObject::Units::Min)
and so on...
where
Decreases the function space clutter but makes code generally longer, I think it's more beneficial this way as it's clearer and we don't have to declare multiple functions for any function that requires unit conversion