Added new timing library, added Socket::Buffer support to RTMP library.

This commit is contained in:
Thulinma 2012-09-18 15:48:44 +02:00
parent c95bf32fae
commit c019dc6e9f
8 changed files with 195 additions and 40 deletions

10
lib/timing.h Normal file
View 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.
};