blah2
A real-time passive radar
Timing Class Reference

A class to store timing statistics. More...

#include <Timing.h>

Collaboration diagram for Timing:
Collaboration graph

Public Member Functions

 Timing (uint64_t tStart)
 Constructor. More...
 
void update (uint64_t tNow, std::vector< double > time, std::vector< std::string > name)
 Update the time differences and names. More...
 
std::string to_json ()
 Generate JSON of the map and metadata. More...
 
bool save (std::string json, std::string path)
 Append the map to a save file. More...
 

Private Attributes

uint64_t tStart
 Start time (POSIX ms). More...
 
uint64_t tNow
 Current time (POSIX ms). More...
 
uint64_t n
 Number of CPI's. More...
 
uint64_t uptime
 Time since first CPI (ms). More...
 
std::vector< double > time
 Time differences (ms). More...
 
std::vector< std::string > name
 Names of time differences. More...
 

Detailed Description

A class to store timing statistics.

Author
30hours

Constructor & Destructor Documentation

◆ Timing()

Timing::Timing ( uint64_t  tStart)

Constructor.

Parameters
tStartStart time (POSIX ms).
Returns
The object.

Member Function Documentation

◆ save()

bool Timing::save ( std::string  json,
std::string  path 
)

Append the map to a save file.

Parameters
jsonJSON string of map and metadata.
pathPath of file to save.
Returns
True is save is successful.

◆ to_json()

std::string Timing::to_json ( )

Generate JSON of the map and metadata.

Returns
JSON string.

◆ update()

void Timing::update ( uint64_t  tNow,
std::vector< double >  time,
std::vector< std::string >  name 
)

Update the time differences and names.

Parameters
tNowCurrent time (POSIX ms).
timeVector of time differences (ms).
nameVector of time difference names.
Returns
Void.

Member Data Documentation

◆ n

uint64_t Timing::n
private

Number of CPI's.

◆ name

std::vector<std::string> Timing::name
private

Names of time differences.

◆ time

std::vector<double> Timing::time
private

Time differences (ms).

◆ tNow

uint64_t Timing::tNow
private

Current time (POSIX ms).

◆ tStart

uint64_t Timing::tStart
private

Start time (POSIX ms).

◆ uptime

uint64_t Timing::uptime
private

Time since first CPI (ms).


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