From 81d0a2a1447724d81022b29c2c6c348dad032d83 Mon Sep 17 00:00:00 2001 From: Comment Date: Tue, 26 Nov 2013 00:57:11 +0000 Subject: analytics accuracy --- rotord/src/rotor.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'rotord/src/rotor.cpp') diff --git a/rotord/src/rotor.cpp b/rotord/src/rotor.cpp index 9d76626..b1ef2b6 100644 --- a/rotord/src/rotor.cpp +++ b/rotord/src/rotor.cpp @@ -84,6 +84,12 @@ float Signal_input::get_time_used(){ } return 0.0f; } +float Signal_input::get_time_taken(){ + if (connection){ + return ((Signal_node*)connection)->time_taken; + } + return 0.0f; +} bool Signal_input::connect(Node* source) { connection=dynamic_cast(source); if (connection) return true; @@ -101,6 +107,12 @@ float Image_input::get_time_used(){ } return 0.0f; } +float Image_input::get_time_taken(){ + if (connection){ + return ((Image_node*)connection)->time_taken; + } + return 0.0f; +} bool Image_input::connect(Node* source) { connection=dynamic_cast(source); if (connection) return true; -- cgit v1.2.3