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:
parent
aeee3011ef
commit
b53b75ea1e
12 changed files with 982 additions and 15 deletions
10
trunk/src/srt/time_help.h
Normal file
10
trunk/src/srt/time_help.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue