#include <GpuTimer.h>
Definition at line 19 of file GpuTimer.h.
Default constructor.
- Parameters
-
stream | CUDA stream to be timed (defaults to stream 0) |
- Note
- Starts the timer
Definition at line 28 of file GpuTimer.h.
Construct and start the timer.
- Parameters
-
msg | string message to be printed when timer is started |
stream | CUDA stream to be timed (defaults to stream 0) |
os | output stream for the message above |
Definition at line 39 of file GpuTimer.h.
nanovdb::GpuTimer::~GpuTimer |
( |
| ) |
|
|
inline |
float nanovdb::GpuTimer::elapsed |
( |
| ) |
|
|
inline |
elapsed time (since start) in miliseconds
- Returns
- elapsed time (since start) in miliseconds
Definition at line 81 of file GpuTimer.h.
void nanovdb::GpuTimer::restart |
( |
const std::string & |
msg, |
|
|
std::ostream & |
os = std::cerr |
|
) |
| |
|
inline |
stop and start the timer
- Parameters
-
msg | string message to be printed when timer is started |
- Warning
- Remember to call start before restart
Definition at line 101 of file GpuTimer.h.
void nanovdb::GpuTimer::start |
( |
| ) |
|
|
inline |
Start the timer.
- Parameters
-
stream | CUDA stream to be timed (defaults to stream 0) |
os | output stream for the message above |
Definition at line 58 of file GpuTimer.h.
void nanovdb::GpuTimer::start |
( |
const std::string & |
msg, |
|
|
std::ostream & |
os = std::cerr |
|
) |
| |
|
inline |
Start the timer.
- Parameters
-
msg | string message to be printed when timer is started |
os | output stream for the message above |
Definition at line 64 of file GpuTimer.h.
void nanovdb::GpuTimer::start |
( |
const char * |
msg, |
|
|
std::ostream & |
os = std::cerr |
|
) |
| |
|
inline |
Start the timer.
- Parameters
-
msg | string message to be printed when timer is started |
os | output stream for the message above |
Definition at line 73 of file GpuTimer.h.
void nanovdb::GpuTimer::stop |
( |
std::ostream & |
os = std::cerr | ) |
|
|
inline |
stop the timer
- Parameters
-
os | output stream for the message above |
Definition at line 92 of file GpuTimer.h.
The documentation for this class was generated from the following file: