![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
This class implements timer utils. More...
#include <timer-util.h>

Public Member Functions | |
| double | elapsed_time () const |
| double | elapsed_time_ms () const |
| long | elapsed_time_us () const |
| void | end () |
| void | start () |
Private Attributes | |
| std::chrono::time_point< std::chrono::steady_clock > | end_time |
| std::chrono::time_point< std::chrono::steady_clock > | start_time |
This class implements timer utils.
Definition at line 25 of file timer-util.h.
|
inline |
Computes time elapsed between start and end in seconds (as a real value)
Definition at line 46 of file timer-util.h.
References count, end_time, and start_time.
Referenced by demo().
|
inline |
Definition at line 52 of file timer-util.h.
References count, end_time, and start_time.
Referenced by LDGM_session_cpu::decode_frame(), LDGM_session_gpu::decode_frame(), and LDGM_session::encode_frame().
|
inline |
Definition at line 58 of file timer-util.h.
References count, end_time, and start_time.
Referenced by LDGM_session::encode_hdr_frame().
|
inline |
Definition at line 36 of file timer-util.h.
References end_time.
Referenced by LDGM_session_cpu::decode_frame(), LDGM_session_gpu::decode_frame(), demo(), LDGM_session::encode_frame(), and LDGM_session::encode_hdr_frame().
|
inline |
Definition at line 32 of file timer-util.h.
References start_time.
Referenced by LDGM_session_cpu::decode_frame(), LDGM_session_gpu::decode_frame(), demo(), LDGM_session::encode_frame(), and LDGM_session::encode_hdr_frame().
|
private |
Definition at line 29 of file timer-util.h.
Referenced by elapsed_time(), elapsed_time_ms(), elapsed_time_us(), and end().
|
private |
Definition at line 28 of file timer-util.h.
Referenced by elapsed_time(), elapsed_time_ms(), elapsed_time_us(), and start().