MCPcopy Create free account
hub / github.com/apache/trafficserver / difference_msec

Method difference_msec

include/proxy/Milestones.h:64–71  ·  view source on GitHub ↗

* Takes two milestones and returns the difference. * @param start The start time * @param end The end time * @return The difference time in milliseconds */

Source from the content-addressed store, hash-verified

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.

Callers 5

process_hostdb_infoMethod · 0.80

Calls 1

ink_hrtime_to_msecFunction · 0.85

Tested by

no test coverage detected