diff --git a/components/rgbd-sources/src/streamer.cpp b/components/rgbd-sources/src/streamer.cpp index 9e693533815f95aa08bbe368e66bef71e245aa78..d82135df3cba6bebcea3947377b5115f366ed8da 100644 --- a/components/rgbd-sources/src/streamer.cpp +++ b/components/rgbd-sources/src/streamer.cpp @@ -266,11 +266,15 @@ void Streamer::_schedule() { // Grab job ftl::pool.push([this,src](int id) { //StreamSource *src = sources_[uri]; + auto start = std::chrono::high_resolution_clock::now(); try { src->src->grab(); } catch (...) { LOG(ERROR) << "Exception when grabbing frame"; } + std::chrono::duration<double> elapsed = + std::chrono::high_resolution_clock::now() - start; + LOG(INFO) << "Grab in " << elapsed.count() << "s"; // CHECK (Nick) Can state be an atomic instead? //UNIQUE_LOCK(src->mutex, lk);