mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-03 00:29:35 +02:00
Code comments
This commit is contained in:
parent
c1cb395eb0
commit
a88e218d91
6 changed files with 51 additions and 8 deletions
|
@ -26,6 +26,12 @@
|
|||
#include "common/timeDefs.h"
|
||||
|
||||
|
||||
/// Provides local and server time
|
||||
/**
|
||||
* Stores time difference to the server
|
||||
* Returns server's local system time.
|
||||
* Clients are using the server time to play audio in sync, independent of the client's system time
|
||||
*/
|
||||
class TimeProvider
|
||||
{
|
||||
public:
|
||||
|
@ -49,7 +55,7 @@ public:
|
|||
*/
|
||||
|
||||
template<typename T>
|
||||
static T sinceEpoche(const chronos::time_point_hrc& point)
|
||||
static T sinceEpoche(const chronos::time_point_hrc& point)
|
||||
{
|
||||
return std::chrono::duration_cast<T>(point.time_since_epoch());
|
||||
}
|
||||
|
@ -70,7 +76,7 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
TimeProvider();
|
||||
TimeProvider();
|
||||
TimeProvider(TimeProvider const&); // Don't Implement
|
||||
void operator=(TimeProvider const&); // Don't implement
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue