#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 | os_TIME |
Functions | |
| int | getCPUCount () |
| return the CPU count. On error returns a cpu count of 0 or -1 | |
| 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 | |
|
|
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(). |
|
|
|
|
|
return the CPU count. On error returns a cpu count of 0 or -1
Definition at line 33 of file Utils.cpp. Referenced by main(), and PanoDetector::PanoDetector(). |
|
|
returns the total memory in byte
Definition at line 89 of file Utils.cpp. Referenced by PanoDetector::run(). |
|
|
|
|
||||||||||||
|
|
1.3.9.1