mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-01 02:11:47 +02:00
optimizations
git-svn-id: svn://elaine/murooma/trunk@51 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
8244ce81d6
commit
7228f5565b
2 changed files with 16 additions and 54 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue