MCPcopy Create free account
hub / github.com/ModelEngine-Group/flexai / GetTimeDiff

Function GetTimeDiff

GPU-Virtual-Service/gpu-remoting/include/define.h:90–96  ·  view source on GitHub ↗

* @brief Get the Time Diff object * * @param start_time start time * @param end_time end time * @return double the diff time (sec) */

Source from the content-addressed store, hash-verified

88 * @return double the diff time (sec)
89 */
90 inline double GetTimeDiff(struct timeval start_time, struct timeval end_time) {
91 double second;
92 second = static_cast<double>(end_time.tv_sec - start_time.tv_sec) * SEC_2_US +
93 end_time.tv_usec - start_time.tv_usec;
94 second = second / SEC_2_US;
95 return second;
96 }
97
98 /**
99 * @brief compare the limits with the input

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected