BUILDFIX: some gcc build fixes
parent
5762c1d0d7
commit
e8aa0c493b
|
|
@ -52,7 +52,7 @@ public:
|
|||
// Return a low precision usec since epoch
|
||||
static U64 getTotalTime()
|
||||
{
|
||||
return sTotalTime ? sTotalTime : totalTime();
|
||||
return sTotalTime ? LLUnitImplicit<U64, LLUnits::Microseconds>(sTotalTime) : totalTime();
|
||||
}
|
||||
|
||||
// Return a low precision seconds since epoch
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ public:
|
|||
inline S32 unref() const
|
||||
{
|
||||
llassert(mRef >= 1);
|
||||
if (0 == --mRef)
|
||||
if (0 == --mRef)
|
||||
{
|
||||
delete this;
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -203,8 +203,6 @@ F64 calc_clock_frequency(unsigned int uiMeasureMSecs)
|
|||
return 1000000.0; // microseconds, so 1 MHz.
|
||||
}
|
||||
|
||||
const U64 SEC_TO_MICROSEC_U64 = 1000000;
|
||||
|
||||
U64 get_clock_count()
|
||||
{
|
||||
// Linux clocks are in microseconds
|
||||
|
|
|
|||
Loading…
Reference in New Issue