MCPcopy Create free account
hub / github.com/colmap/colmap / CudaTimer

Method CudaTimer

src/colmap/util/cudacc.cc:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34namespace colmap {
35
36CudaTimer::CudaTimer() {
37 CUDA_SAFE_CALL(cudaEventCreate(&start_));
38 CUDA_SAFE_CALL(cudaEventCreate(&stop_));
39 CUDA_SAFE_CALL(cudaEventRecord(start_, 0));
40}
41
42CudaTimer::~CudaTimer() {
43 CUDA_SAFE_CALL(cudaEventDestroy(start_));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected