MCPcopy Create free account
hub / github.com/FeiYull/TensorRT-Alpha / getUsedTime

Method getUsedTime

utils/utils.cpp:250–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250float utils::HostTimer::getUsedTime()
251{
252 t2 = std::chrono::steady_clock::now();
253 std::chrono::duration<double> time_used = std::chrono::duration_cast<std::chrono::duration<double>>(t2 - t1);
254 return(1000 * time_used.count()); // ms
255}
256
257utils::HostTimer::~HostTimer()
258{

Callers 15

taskFunction · 0.80
taskFunction · 0.80
taskFunction · 0.80
taskFunction · 0.80
taskFunction · 0.80
taskFunction · 0.80
taskFunction · 0.80
taskFunction · 0.80
taskFunction · 0.80
taskFunction · 0.80
taskFunction · 0.80
taskFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected