1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

srt pull/push server

This commit is contained in:
runner365 2020-01-14 21:10:33 +08:00
parent aeee3011ef
commit b53b75ea1e
12 changed files with 982 additions and 15 deletions

10
trunk/src/srt/time_help.h Normal file
View file

@ -0,0 +1,10 @@
#ifndef TIME_HELP_H
#define TIME_HELP_H
#include <chrono>
inline long long now_ms() {
return std::chrono::duration_cast<std::chrono::milliseconds>(
std::chrono::system_clock::now().time_since_epoch()).count();
}
#endif //TIME_HELP_H