Phoxonics
1.0
Object Oriented FDTD Software
|
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) |
|
explicit |
|
virtual |
void phoxonics::common::DateTime::calculate_print_elapsed_time | ( | timeval | t1, |
timeval | t2 | ||
) |
Helper function to print times
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.
addColon | cmd The command to execute |
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().