#include "config.h"
#include <unistd.h>
#include <iostream>
#include <iomanip>
#include <string>
#include <time.h>
#include <sys/types.h>
#include "types.h"
#include "error.h"
#include "fs.h"
#include "estring.h"
#include "strfmt.h"
#include "rmath.h"
#include "timer.h"
Go to the source code of this file.
Functions | |
const std::string | make_time_string_ (timer::value_type a_t) |
Given a timer value, return a string in the form of "YYYY.MM.DD HH:MM:SS". | |
const std::string | current_time (void) |
Return the current time. | |
std::string | stamp (const pid_t a_pid, const int a_indention) |
Generate a timstamp string. |
const std::string current_time | ( | void | ) |
Return the current time.
Definition at line 542 of file timer.cc.
References make_time_string_(), and TRY_nomem.
Referenced by vault_stats_report::assign(), and stamp().
const std::string make_time_string_ | ( | timer::value_type | a_t | ) |
Given a timer value, return a string in the form of "YYYY.MM.DD HH:MM:SS".
Definition at line 26 of file timer.cc.
References ERROR, estring::right, TRY, and TRY_nomem.
Referenced by current_time().
std::string stamp | ( | const pid_t | a_pid, | |
const int | a_indention | |||
) |
Generate a timstamp string.
Definition at line 552 of file timer.cc.
References current_time(), pid(), estring::right, and TRY_nomem.
Referenced by test(), and log_manager::write().