* Mark given milestone with timestamp if it's not marked yet * @param ms The milestone to mark * @return N/A */
| 48 | * @return N/A |
| 49 | */ |
| 50 | void |
| 51 | mark(T ms) |
| 52 | { |
| 53 | if (this->_milestones[static_cast<size_t>(ms)] == 0) { |
| 54 | this->_milestones[static_cast<size_t>(ms)] = ink_get_hrtime(); |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * Takes two milestones and returns the difference. |
no test coverage detected