MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / operator-

Method operator-

samples/common/sampleDevice.h:141–146  ·  view source on GitHub ↗

Returns time elapsed time in milliseconds

Source from the content-addressed store, hash-verified

139
140 // Returns time elapsed time in milliseconds
141 float operator-(const TrtCudaEvent& e) const
142 {
143 float time{0};
144 cudaCheck(cudaEventElapsedTime(&time, e.get(), get()));
145 return time;
146 }
147
148private:
149 cudaEvent_t mEvent{};

Callers

nothing calls this directly

Calls 3

cudaCheckFunction · 0.85
getFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected