* Takes two milestones and returns the difference. * @param start The start time * @param end The end time * @return The difference time in milliseconds */
| 62 | * @return The difference time in milliseconds |
| 63 | */ |
| 64 | int64_t |
| 65 | difference_msec(T ms_start, T ms_end, int64_t missing = -1) const // Return "missing" when Milestone is not set |
| 66 | { |
| 67 | if (this->_milestones[static_cast<size_t>(ms_end)] == 0) { |
| 68 | return missing; |
| 69 | } |
| 70 | return ink_hrtime_to_msec(this->_milestones[static_cast<size_t>(ms_end)] - this->_milestones[static_cast<size_t>(ms_start)]); |
| 71 | } |
| 72 | |
| 73 | /** |
| 74 | * Takes two milestones and returns the difference. |
no test coverage detected