From d537803422b5832d1b4a2f3fde6fae8704448638 Mon Sep 17 00:00:00 2001 From: Comment Date: Tue, 11 Feb 2014 23:46:05 +0000 Subject: fixed analytics --- rotord/src/graph.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'rotord/src/graph.cpp') diff --git a/rotord/src/graph.cpp b/rotord/src/graph.cpp index c356916..566d7b0 100644 --- a/rotord/src/graph.cpp +++ b/rotord/src/graph.cpp @@ -250,20 +250,22 @@ bool Graph::video_render(const string &output_filename,const double framerate,in double mtime = ((_end.tv_sec-_start.tv_sec) + (_end.tv_usec-_start.tv_usec)/1000000.0); logger.information("Video_output: rendered "+namestub+suffix+": in "+toString(mtime)+" seconds"); - logger.information("compression codec took "+toString(mtime-video_output->time_taken)+" seconds"); - + for (auto n:nodes) { - logger.information(n.second->type+" node '"+n.first+"' took "+toString(n.second->get_time_used())+" seconds"); + if (dynamic_cast(n.second)){ + logger.information(n.second->type+" node '"+n.first+"' took "+toString(n.second->get_time_used())+" seconds"); + } + mtime-=n.second->get_time_used(); } + logger.information("compression codec took "+toString(mtime)+" seconds"); + if (usingaudio) { audioloader.cleanup(); delete[] audioframe; delete[] audio; } - - return true; } } -- cgit v1.2.3