rvm  1.11
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions
test-timer.cc File Reference
#include "config.h"
#include <iostream>
#include <cassert>
#include <unistd.h>
#include "asserts.h"
#include "error.h"
#include "timer.h"
Include dependency graph for test-timer.cc:

Go to the source code of this file.

Macros

#define ERR_OUT(s)
 

Functions

template<class T >
absolute (const T &num)
 
void test1 (void)
 
void test2 (void)
 
void test3 (void)
 
int main (int argc, char const *argv[])
 

Macro Definition Documentation

#define ERR_OUT (   s)

Definition at line 15 of file test-timer.cc.

Function Documentation

template<class T >
T absolute ( const T &  num)

Definition at line 18 of file test-timer.cc.

Referenced by test2().

int main ( int  argc,
char const *  argv[] 
)

Definition at line 368 of file test-timer.cc.

References err_unknown, test1(), test2(), and test3().

Here is the call graph for this function:

void test1 ( void  )

Definition at line 26 of file test-timer.cc.

References timer::duration(), timer::start(), and timer::stop().

Referenced by main().

Here is the call graph for this function:

void test2 ( void  )

Definition at line 51 of file test-timer.cc.

References absolute(), timer::duration_days(), timer::duration_hours(), timer::duration_mins(), timer::duration_secs(), timer::duration_years(), timer::start(), and timer::stop().

Referenced by main().

Here is the call graph for this function:

void test3 ( void  )

Definition at line 96 of file test-timer.cc.

References timer::assign(), timer::duration(), timer::eta(), timer::start_value(), timer::started_at(), timer::stop_value(), timer::stopped_at(), and timer::use_localtime().

Referenced by main().

Here is the call graph for this function: