mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
19 lines
No EOL
354 B
C++
19 lines
No EOL
354 B
C++
//
|
|
// Copyright (c) 2013-2020 Runner365
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
//
|
|
|
|
#ifndef TIME_HELP_H
|
|
#define TIME_HELP_H
|
|
|
|
#include <srs_core.hpp>
|
|
|
|
#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
|