diff options
Diffstat (limited to 'rotord/src/rotor.cpp')
| -rw-r--r-- | rotord/src/rotor.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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<Signal_node*>(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<Image_node*>(source); if (connection) return true; |
