timer.cc File Reference

#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"
Include dependency graph for timer.cc:

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.

Function Documentation

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Thu Sep 30 14:09:20 2010 for rvm by  doxygen 1.6.1