Style fix
This commit is contained in:
parent
93aca84731
commit
6026786069
|
@ -1694,7 +1694,8 @@ OPJ_FLOAT64 opj_clock(void)
|
||||||
/* cout << "freq = " << ((double) freq.QuadPart) << endl; */
|
/* cout << "freq = " << ((double) freq.QuadPart) << endl; */
|
||||||
/* t is the high resolution performance counter (see MSDN) */
|
/* t is the high resolution performance counter (see MSDN) */
|
||||||
QueryPerformanceCounter(& t) ;
|
QueryPerformanceCounter(& t) ;
|
||||||
return freq.QuadPart ? ((OPJ_FLOAT64) t.QuadPart / (OPJ_FLOAT64) freq.QuadPart) : 0 ;
|
return freq.QuadPart ? ((OPJ_FLOAT64) t.QuadPart / (OPJ_FLOAT64) freq.QuadPart)
|
||||||
|
: 0 ;
|
||||||
#else
|
#else
|
||||||
/* Unix or Linux: use resource usage */
|
/* Unix or Linux: use resource usage */
|
||||||
struct rusage t;
|
struct rusage t;
|
||||||
|
|
|
@ -935,7 +935,8 @@ OPJ_FLOAT64 opj_clock(void)
|
||||||
/* cout << "freq = " << ((double) freq.QuadPart) << endl; */
|
/* cout << "freq = " << ((double) freq.QuadPart) << endl; */
|
||||||
/* t is the high resolution performance counter (see MSDN) */
|
/* t is the high resolution performance counter (see MSDN) */
|
||||||
QueryPerformanceCounter(& t) ;
|
QueryPerformanceCounter(& t) ;
|
||||||
return freq.QuadPart ? ((OPJ_FLOAT64)t.QuadPart / (OPJ_FLOAT64)freq.QuadPart) : 0;
|
return freq.QuadPart ? ((OPJ_FLOAT64)t.QuadPart / (OPJ_FLOAT64)freq.QuadPart) :
|
||||||
|
0;
|
||||||
#elif defined(__linux)
|
#elif defined(__linux)
|
||||||
struct timespec ts;
|
struct timespec ts;
|
||||||
clock_gettime(CLOCK_REALTIME, &ts);
|
clock_gettime(CLOCK_REALTIME, &ts);
|
||||||
|
|
Loading…
Reference in New Issue