mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine SrsWallClock and SrsKbps in time unit.
This commit is contained in:
parent
5560b529a7
commit
cfab73b552
5 changed files with 39 additions and 39 deletions
|
@ -33,11 +33,11 @@ typedef int64_t srs_utime_t;
|
|||
#define SRS_UTIME_MILLISECONDS 1000
|
||||
|
||||
// Convert srs_utime_t as ms.
|
||||
#define srsu2ms(us) (us / SRS_UTIME_MILLISECONDS)
|
||||
#define srsu2msi(us) int(us / SRS_UTIME_MILLISECONDS)
|
||||
#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
|
||||
#define SRS_UTIME_SECONDS 1000000LL
|
||||
|
||||
// The time unit in minutes, for example 3 * SRS_UTIME_MINUTES means 3m.
|
||||
#define SRS_UTIME_MINUTES 60000000LL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue