fixed linux warnings

This commit is contained in:
Yann Collet
2017-01-02 01:11:55 +01:00
parent 0ec6a95ba1
commit f1cb55192c
3 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -101,8 +101,8 @@ static clock_us_t BMK_clockMicroSec(void)
static clock_t _ticksPerSecond = 0;
if (_ticksPerSecond <= 0) _ticksPerSecond = sysconf(_SC_CLK_TCK);
struct tms junk; clock_t newTicks = (clock_t) times(&junk); (void)junk;
return ((((clock_us_t)newTicks)*(1000000))/_ticksPerSecond);
{ struct tms junk; clock_t newTicks = (clock_t) times(&junk); (void)junk;
return ((((clock_us_t)newTicks)*(1000000))/_ticksPerSecond); }
}