#include "base/cs_defs.h"
#include <chrono>
#include <initializer_list>
#include <tuple>
#include <type_traits>
#include <utility>
#include "base/cs_assert.h"
#include "base/cs_mem.h"
#include "base/cs_dispatch.h"
Go to the source code of this file.
|
| using | cs_event_duration = std::chrono::steady_clock::duration |
| | Duration type for elapsed time between two events. More...
|
| |
◆ CS_DISPATCH_QUEUE_FORCE_SYNC
| #define CS_DISPATCH_QUEUE_FORCE_SYNC 0 |
Forces synchronous execution of tasks, even on GPU.
◆ cs_event_duration
Duration type for elapsed time between two events.
◆ cs_elapsed_time() [1/2]
Returns elapsed time (in microseconds) between two events.
- Parameters
-
| [in] | start | reference to start event |
| [in] | end | reference to end event |
- Returns
- elapsed time.
◆ cs_elapsed_time() [2/2]
Returns elapsed time (in microseconds) between stard and end of a task.
- Parameters
-
| [in] | start | reference to start event |
| [in] | end | reference to end event |
- Returns
- elapsed time.