diff options
| author | Comment <tim@gray.(none)> | 2013-11-26 00:57:11 +0000 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-11-26 00:57:11 +0000 |
| commit | 81d0a2a1447724d81022b29c2c6c348dad032d83 (patch) | |
| tree | 72fb3827ade42c0423aa5542f451198570af1c1e /rotord/src/rotor.cpp | |
| parent | 0582c81b7499281cfd9e8643e763c7521a67aec9 (diff) | |
analytics accuracy
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; |
