| 22 | |
| 23 | namespace { |
| 24 | int timestampToSample(int64_t T, int NSamples, int WhisperSampleRate) { |
| 25 | return std::max(0, std::min(static_cast<int>(NSamples) - 1, |
| 26 | static_cast<int>((T * WhisperSampleRate) / 100))); |
| 27 | } |
| 28 | std::string toTimestamp(int64_t T, bool Comma) { |
| 29 | int64_t Msec = T * 10; |
| 30 | int64_t Hr = Msec / (1000 * 60 * 60); |
no outgoing calls
no test coverage detected