MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / WallClockTime

Function WallClockTime

include/luxrays/utils/utils.h:102–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100namespace luxrays {
101
102inline double WallClockTime() {
103#if defined(__linux__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__OpenBSD__) || defined(__FreeBSD__)
104 struct timeval t;
105 gettimeofday(&t, NULL);
106
107 return t.tv_sec + t.tv_usec / 1000000.0;
108#elif defined (WIN32)
109 return GetTickCount() / 1000.0;
110#else
111#error "Unsupported Platform !!!"
112#endif
113}
114
115template<class T> inline T Lerp(float t, T v1, T v2) {
116 // Linear interpolation

Callers 15

RunAppMethod · 0.85
LuxRaysDebugHandlerFunction · 0.85
SDLDebugHandlerFunction · 0.85
SLGDebugHandlerFunction · 0.85
InitMethod · 0.85
StartMethod · 0.85
InitMethod · 0.85
bvhaccel.cppFile · 0.85
BOOST_FOREACHFunction · 0.85
InitMethod · 0.85

Calls

no outgoing calls

Tested by 1