1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Timer: Refine the hour glass, support stop

This commit is contained in:
winlin 2021-02-09 11:54:08 +08:00
parent 45834b805b
commit 98c29a1494
2 changed files with 11 additions and 5 deletions

View file

@ -65,6 +65,11 @@ srs_error_t SrsHourGlass::start()
return err;
}
void SrsHourGlass::stop()
{
trd->stop();
}
srs_error_t SrsHourGlass::tick(srs_utime_t interval)
{
return tick(0, interval);