Merge branch 'total-execution-time'
This commit is contained in:
commit
3986bcf378
@ -354,6 +354,7 @@ bool PipelineManager::create_pipeline_elements(int num_sources,
|
|||||||
get_fps_buffer_probe();
|
get_fps_buffer_probe();
|
||||||
get_fps_probe();
|
get_fps_probe();
|
||||||
get_fps_osd();
|
get_fps_osd();
|
||||||
|
auto start = std::chrono::system_clock::now();
|
||||||
status_playing = playing_pipeline(num_sources, url_camera);
|
status_playing = playing_pipeline(num_sources, url_camera);
|
||||||
if (status_playing == false) {
|
if (status_playing == false) {
|
||||||
return -1;
|
return -1;
|
||||||
@ -392,6 +393,10 @@ bool PipelineManager::create_pipeline_elements(int num_sources,
|
|||||||
// g_free (uri);
|
// g_free (uri);
|
||||||
g_mutex_clear(&eos_lock);
|
g_mutex_clear(&eos_lock);
|
||||||
rtsp_streaming_manager->destroy_sink_bin();
|
rtsp_streaming_manager->destroy_sink_bin();
|
||||||
|
auto end = std::chrono::system_clock::now();
|
||||||
|
std::cout <<" Overall running time = " <<
|
||||||
|
std::chrono::duration_cast<std::chrono::microseconds>(end - start).count() <<
|
||||||
|
"us" << std::endl;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user