Permalink
Browse files

Merge branch 'fix_startthreadtimer' into 'master'

define startthreadtimer if macro USE_TIMEOFDAY is not defined

See merge request !207
  • Loading branch information...
JSchoeberl committed Jul 10, 2017
2 parents 79ad849 + d7b6758 commit 5b2736adc78139a0178fe52ec0e2cf0676280d60
Showing with 9 additions and 0 deletions.
  1. +9 −0 ngstd/profiler.hpp
@@ -152,6 +152,15 @@ namespace ngstd
VT_USER_END (const_cast<char*> (names[nr].c_str()));
}
static void StartThreadTimer (size_t nr, size_t tid)
{
thread_times[tid*SIZE+nr] -= __rdtsc();
}
static void StopThreadTimer (size_t nr, size_t tid)
{
thread_times[tid*SIZE+nr] += __rdtsc();
}
#endif

0 comments on commit 5b2736a

Please sign in to comment.