AJA NTV2 SDK  17.5.0.1242
NTV2 SDK 17.5.0.1242
AJATimeLog Class Reference

#include <log.h>

Collaboration diagram for AJATimeLog:
[legend]

Public Member Functions

 AJATimeLog ()
 
 AJATimeLog (const char *tag, int unit=AJA_DebugUnit_Critical)
 
 AJATimeLog (const std::string &tag, int unit=AJA_DebugUnit_Critical)
 
virtual ~AJATimeLog ()
 
void Reset ()
 
void PrintReset ()
 
void PrintResetIf (bool bEnable=true)
 
void PrintDelta (bool bReset=true)
 
void PrintDelta (const char *addedTag, bool bReset=true)
 
void PrintDelta (uint64_t threashold, const char *addedTag, bool bReset)
 
void PrintDelta (const std::string &addedTag, bool bReset=true)
 
void PrintDeltaIf (bool bEnable, bool bReset=true)
 
void PrintDeltaIf (bool bEnable, const char *addedTag, bool bReset=true)
 
void PrintDeltaIf (bool bEnable, const std::string &addedTag, bool bReset=true)
 
int32_t GetDelta (bool bReset=true)
 
int32_t GetLastDelta ()
 
int32_t GetLastDeltaMs ()
 
void PrintValue (int64_t val)
 
void PrintValue (int64_t val, const char *addedTag)
 
void PrintValue (int64_t val, const std::string &addedTag)
 
void Print (const char *str)
 
void Print (const std::string &str)
 
int GetUnit ()
 
void SetUnit (int unit)
 
std::string GetTag ()
 
void SetTag (const char *tag)
 

Protected Attributes

std::string _tag
 
int _unit
 
uint64_t _time
 
uint64_t _lastDelta
 

Detailed Description

Definition at line 190 of file log.h.

Constructor & Destructor Documentation

◆ AJATimeLog() [1/3]

AJATimeLog::AJATimeLog ( )

Definition at line 188 of file log.cpp.

◆ AJATimeLog() [2/3]

AJATimeLog::AJATimeLog ( const char *  tag,
int  unit = AJA_DebugUnit_Critical 
)

Definition at line 195 of file log.cpp.

◆ AJATimeLog() [3/3]

AJATimeLog::AJATimeLog ( const std::string &  tag,
int  unit = AJA_DebugUnit_Critical 
)

Definition at line 202 of file log.cpp.

◆ ~AJATimeLog()

AJATimeLog::~AJATimeLog ( )
virtual

Definition at line 209 of file log.cpp.

Member Function Documentation

◆ GetDelta()

int32_t AJATimeLog::GetDelta ( bool  bReset = true)

Get delta-time since last reset.

Parameters
[in]bResettrue if time is reset after get

Definition at line 235 of file log.cpp.

◆ GetLastDelta()

int32_t AJATimeLog::GetLastDelta ( )
inline

Definition at line 238 of file log.h.

◆ GetLastDeltaMs()

int32_t AJATimeLog::GetLastDeltaMs ( )
inline

Definition at line 240 of file log.h.

◆ GetTag()

std::string AJATimeLog::GetTag ( )
inline

Definition at line 261 of file log.h.

◆ GetUnit()

int AJATimeLog::GetUnit ( )
inline

Definition at line 256 of file log.h.

◆ Print() [1/2]

void AJATimeLog::Print ( const char *  str)

Definition at line 281 of file log.cpp.

◆ Print() [2/2]

void AJATimeLog::Print ( const std::string &  str)
inline

Definition at line 253 of file log.h.

◆ PrintDelta() [1/4]

void AJATimeLog::PrintDelta ( bool  bReset = true)

Print tag, appended tag, and delta-time since last reset.

Parameters
[in]bResettrue if time is reset after print

Definition at line 228 of file log.cpp.

◆ PrintDelta() [2/4]

void AJATimeLog::PrintDelta ( const char *  addedTag,
bool  bReset = true 
)

Definition at line 245 of file log.cpp.

◆ PrintDelta() [3/4]

void AJATimeLog::PrintDelta ( const std::string &  addedTag,
bool  bReset = true 
)
inline

Definition at line 218 of file log.h.

◆ PrintDelta() [4/4]

void AJATimeLog::PrintDelta ( uint64_t  threashold,
const char *  addedTag,
bool  bReset 
)

Definition at line 251 of file log.cpp.

◆ PrintDeltaIf() [1/3]

void AJATimeLog::PrintDeltaIf ( bool  bEnable,
bool  bReset = true 
)
inline

Optional print tag, appended tag, and delta-time since last reset.

Parameters
[in]bEnabletrue to print, false inhibits printing
[in]bResettrue if time is reset after print

Definition at line 226 of file log.h.

◆ PrintDeltaIf() [2/3]

void AJATimeLog::PrintDeltaIf ( bool  bEnable,
const char *  addedTag,
bool  bReset = true 
)
inline

Definition at line 228 of file log.h.

◆ PrintDeltaIf() [3/3]

void AJATimeLog::PrintDeltaIf ( bool  bEnable,
const std::string &  addedTag,
bool  bReset = true 
)
inline

Definition at line 230 of file log.h.

◆ PrintReset()

void AJATimeLog::PrintReset ( )

Print does reset along with print

Definition at line 221 of file log.cpp.

◆ PrintResetIf()

void AJATimeLog::PrintResetIf ( bool  bEnable = true)
inline

Definition at line 207 of file log.h.

◆ PrintValue() [1/3]

void AJATimeLog::PrintValue ( int64_t  val)

Optional print tag, appended tag, and delta-time since last reset.

Parameters
[in]valvalue to print

Definition at line 258 of file log.cpp.

◆ PrintValue() [2/3]

void AJATimeLog::PrintValue ( int64_t  val,
const char *  addedTag 
)

Definition at line 270 of file log.cpp.

◆ PrintValue() [3/3]

void AJATimeLog::PrintValue ( int64_t  val,
const std::string &  addedTag 
)
inline

Definition at line 249 of file log.h.

◆ Reset()

void AJATimeLog::Reset ( )

reset timer.

Definition at line 214 of file log.cpp.

◆ SetTag()

void AJATimeLog::SetTag ( const char *  tag)
inline

Definition at line 263 of file log.h.

◆ SetUnit()

void AJATimeLog::SetUnit ( int  unit)
inline

Definition at line 258 of file log.h.

Member Data Documentation

◆ _lastDelta

uint64_t AJATimeLog::_lastDelta
protected

Definition at line 270 of file log.h.

◆ _tag

std::string AJATimeLog::_tag
protected

Definition at line 267 of file log.h.

◆ _time

uint64_t AJATimeLog::_time
protected

Definition at line 269 of file log.h.

◆ _unit

int AJATimeLog::_unit
protected

Definition at line 268 of file log.h.


The documentation for this class was generated from the following files: