Fix compilation errors for POSIX files and make premake4-linux executable.

Former-commit-id: bb094585a678b983e25b55c4fab00665e66f64c5
This commit is contained in:
Alexandre Janniaux
2013-01-05 01:53:54 +01:00
parent 9e0d263694
commit c2e197bda5
8 changed files with 34 additions and 28 deletions

View File

@@ -17,12 +17,12 @@ nzUInt64 NzClockImplGetMicroseconds()
{
timeval clock;
gettimeofday(&clock, nullptr);
return static_cast<nzUInt64>(clock.tv_sec*1000000 + (clock.tv_nsec/1000));
return static_cast<nzUInt64>(clock.tv_sec*1000000 + clock.tv_usec);
}
nzUInt64 NzClockImplGetMilliseconds()
{
timeval clock;
gettimeofday(&clock, nullptr);
return static_cast<nzUInt64>(clock.tv_sec*1000 + (clock.tv_nsec/1000000));
return static_cast<nzUInt64>(clock.tv_sec*1000 + (clock.tv_usec/1000));
}