mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine get_publish_1stpkt_timeout in time unit
This commit is contained in:
parent
d6828a3e58
commit
170872135d
13 changed files with 46 additions and 40 deletions
|
@ -32,6 +32,10 @@ typedef uint64_t srs_utime_t;
|
|||
// The time unit in ms, for example 100 * SRS_UTIME_MILLISECONDS means 100ms.
|
||||
#define SRS_UTIME_MILLISECONDS 1000
|
||||
|
||||
// Convert srs_utime_t in ms unit.
|
||||
#define srsu2ms(us) (us / SRS_UTIME_MILLISECONDS)
|
||||
#define srsu2msi(us) int(us / SRS_UTIME_MILLISECONDS)
|
||||
|
||||
// The time unit in ms, for example 120 * SRS_UTIME_SECONDS means 120s.
|
||||
#define SRS_UTIME_SECONDS 1000000
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue