winlin

refine the hls_on_notify, calc the spent time in ms.

@@ -134,7 +134,7 @@ int64_t srs_update_system_time_ms() @@ -134,7 +134,7 @@ int64_t srs_update_system_time_ms()
134 if (_srs_system_time_us_cache <= 0) { 134 if (_srs_system_time_us_cache <= 0) {
135 _srs_system_time_us_cache = now_us; 135 _srs_system_time_us_cache = now_us;
136 _srs_system_time_startup_time = now_us; 136 _srs_system_time_startup_time = now_us;
137 - return _srs_system_time_us_cache; 137 + return _srs_system_time_us_cache / 1000;
138 } 138 }
139 139
140 // use relative time. 140 // use relative time.
@@ -151,7 +151,7 @@ int64_t srs_update_system_time_ms() @@ -151,7 +151,7 @@ int64_t srs_update_system_time_ms()
151 srs_info("system time updated, startup=%"PRId64"us, now=%"PRId64"us", 151 srs_info("system time updated, startup=%"PRId64"us, now=%"PRId64"us",
152 _srs_system_time_startup_time, _srs_system_time_us_cache); 152 _srs_system_time_startup_time, _srs_system_time_us_cache);
153 153
154 - return _srs_system_time_us_cache; 154 + return _srs_system_time_us_cache / 1000;
155 } 155 }
156 156
157 string srs_dns_resolve(string host) 157 string srs_dns_resolve(string host)