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:

Include dependency graph

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

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  utils

Defines

#define TIMETRACE(TEXT, CODE)

Typedefs

typedef timeval os_TIME

Functions

void os_GetTime (os_TIME *time)
int os_TimeDiff (os_TIME *time1, os_TIME *time2)
unsigned long long 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().


Typedef Documentation

typedef struct timeval utils::os_TIME
 

Definition at line 50 of file Utils.h.


Function Documentation

unsigned long long utils::getTotalMemory  ) 
 

returns the total memory in byte

Definition at line 64 of file Utils.cpp.

Referenced by PanoDetector::run().

void os_GetTime os_TIME time  )  [inline]
 

Definition at line 53 of file Utils.h.

int os_TimeDiff os_TIME time1,
os_TIME time2
[inline]
 

Definition at line 63 of file Utils.h.


Generated on Mon Sep 22 01:25:49 2014 for Hugintrunk by  doxygen 1.3.9.1