Utils.h File Reference

#include <sys/time.h>
#include <zthread/Condition.h>
#include <zthread/FastMutex.h>
#include <zthread/Guard.h>

Include dependency graph for Utils.h:

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

Go to the source code of this file.

Namespaces

namespace  utils

Defines

#define TIMETRACE(TEXT, CODE)

Typedefs

typedef timeval utils::os_TIME

Functions

void utils::os_GetTime (os_TIME *time)
int utils::os_TimeDiff (os_TIME *time1, os_TIME *time2)
unsigned long long utils::getTotalMemory ()
 returns the total memory in byte


Define Documentation

#define TIMETRACE ( TEXT,
CODE   ) 

Value:

{ utils::os_TIME t1,t2; utils::os_GetTime(&t1); CODE; \
        utils::os_GetTime(&t2); std::cout << TEXT << " took " << utils::os_TimeDiff(&t2,&t1)/1000.0 << " seconds." << std::endl; }

Definition at line 38 of file Utils.h.

Referenced by main().


Generated on 5 Dec 2014 for Hugintrunk by  doxygen 1.4.7