Phoxonics  1.0
Object Oriented FDTD Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
phoxonics::common::DateTime Class Reference

Public Member Functions

 DateTime ()
 
virtual ~DateTime ()
 
std::string current_date_time ()
 
std::string get_current_time (bool add_colon)
 Gets the current time. More...
 
void calculate_print_elapsed_time (timeval t1, timeval t2)
 

Constructor & Destructor Documentation

phoxonics::common::DateTime::DateTime ( )
explicit
phoxonics::common::DateTime::~DateTime ( )
virtual

Member Function Documentation

void phoxonics::common::DateTime::calculate_print_elapsed_time ( timeval  t1,
timeval  t2 
)

Helper function to print times

Parameters
t1
t2
std::string phoxonics::common::DateTime::current_date_time ( )
std::string phoxonics::common::DateTime::get_current_time ( bool  add_colon)

Gets the current time.

Parameters
addColoncmd The command to execute
Returns
The result of the execution

This method executes a bash command using a pipe and a buffer to capture the result of the execution, then return the execution to client code.

Referenced by TEST().