optimizations

git-svn-id: svn://elaine/murooma/trunk@51 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-07-01 20:05:49 +00:00
parent 8244ce81d6
commit 7228f5565b
2 changed files with 16 additions and 54 deletions

View file

@ -45,7 +45,7 @@ int getAge(const T& chunk)
}
long getTickCount()
inline long getTickCount()
{
struct timespec now;
clock_gettime(CLOCK_MONOTONIC, &now);
@ -53,7 +53,7 @@ long getTickCount()
}
void addMs(timeval& tv, int ms)
inline void addMs(timeval& tv, int ms)
{
tv.tv_usec += ms*1000;
tv.tv_sec += (tv.tv_usec / 1000000);