| 23 | u16 time_alpha16(u32 now, u32 start, u32 end) FL_NOEXCEPT; |
| 24 | |
| 25 | inline float time_alphaf(u32 now, u32 start, u32 end) FL_NOEXCEPT { |
| 26 | if (now < start) { |
| 27 | return 0.0f; |
| 28 | } |
| 29 | u32 elapsed = now - start; |
| 30 | u32 total = end - start; |
| 31 | float out = static_cast<float>(elapsed) / static_cast<float>(total); |
| 32 | return out; |
| 33 | } |
| 34 | |
| 35 | class TimeAlpha { |
| 36 | public: |
no outgoing calls
no test coverage detected