timer.h File Reference

#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
#include <unistd.h>
#include <string>
#include "asserts.h"
#include "types.h"

Include dependency graph for timer.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  timer
 Used as a stopwatch. More...

Functions

const std::string current_time (void)
 Return the current time.
std::string stamp (const pid_t=0, const int a_indention=0)
 Generate a timstamp string.

Variables

const timer null_timer (0, 0)
 A null timer.


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:

std::string stamp ( const   pid_t = 0,
const int  a_indention = 0 
)

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:


Variable Documentation

const timer null_timer(0, 0)

A null timer.


Generated on Thu Jun 5 11:14:46 2008 for rvm by  doxygen 1.5.1