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

refine the hls_on_notify, calc the spent time in ms.

This commit is contained in:
winlin 2015-04-10 12:32:34 +08:00
parent 310157ab77
commit d8988da0ea

View file

@ -134,7 +134,7 @@ int64_t srs_update_system_time_ms()
if (_srs_system_time_us_cache <= 0) {
_srs_system_time_us_cache = now_us;
_srs_system_time_startup_time = now_us;
return _srs_system_time_us_cache;
return _srs_system_time_us_cache / 1000;
}
// use relative time.
@ -151,7 +151,7 @@ int64_t srs_update_system_time_ms()
srs_info("system time updated, startup=%"PRId64"us, now=%"PRId64"us",
_srs_system_time_startup_time, _srs_system_time_us_cache);
return _srs_system_time_us_cache;
return _srs_system_time_us_cache / 1000;
}
string srs_dns_resolve(string host)