mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
parent
fa8096ad01
commit
954b1b7ef2
5 changed files with 7 additions and 5 deletions
|
@ -54,7 +54,7 @@ public:
|
|||
virtual srs_error_t cycle() = 0;
|
||||
};
|
||||
|
||||
// Start the object, generally a croutine.
|
||||
// Start the object, generally a coroutine.
|
||||
class ISrsStartable
|
||||
{
|
||||
public:
|
||||
|
|
|
@ -25,12 +25,12 @@ typedef int64_t srs_utime_t;
|
|||
|
||||
// Convert srs_utime_t as second.
|
||||
#define srsu2s(us) ((us) / SRS_UTIME_SECONDS)
|
||||
#define srsu2si(us) ((us) / SRS_UTIME_SECONDS)
|
||||
#define srsu2si(us) int((us) / SRS_UTIME_SECONDS)
|
||||
|
||||
// Them time duration = end - start. return 0, if start or end is 0.
|
||||
srs_utime_t srs_duration(srs_utime_t start, srs_utime_t end);
|
||||
|
||||
// The time unit in ms, for example 120 * SRS_UTIME_SECONDS means 120s.
|
||||
// The time unit in seconds, for example 120 * SRS_UTIME_SECONDS means 120s.
|
||||
#define SRS_UTIME_SECONDS 1000000LL
|
||||
|
||||
// The time unit in minutes, for example 3 * SRS_UTIME_MINUTES means 3m.
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
|
||||
#define VERSION_MAJOR 6
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 113
|
||||
#define VERSION_REVISION 114
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue