Added new timing library, added Socket::Buffer support to RTMP library.
This commit is contained in:
parent
c95bf32fae
commit
c019dc6e9f
8 changed files with 195 additions and 40 deletions
10
lib/timing.h
Normal file
10
lib/timing.h
Normal file
|
@ -0,0 +1,10 @@
|
|||
/// \file time.h
|
||||
/// Utilities for handling time and timestamps.
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace Util{
|
||||
void sleep(int ms); ///< Sleeps for the indicated amount of milliseconds or longer.
|
||||
long long int getMS(); ///< Gets the current time in milliseconds.
|
||||
long long int epoch(); ///< Gets the amount of seconds since 01/01/1970.
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue