diff options
Diffstat (limited to 'scene/main/node.h')
-rw-r--r-- | scene/main/node.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scene/main/node.h b/scene/main/node.h index 6616524866..b800d2401e 100644 --- a/scene/main/node.h +++ b/scene/main/node.h @@ -122,6 +122,9 @@ private: int network_master = 1; // Server by default. Vector<MultiplayerAPI::RPCConfig> rpc_methods; + double process_cumulative_time = 0.0; + double physics_process_cumulative_time = 0.0; + // Variables used to properly sort the node when processing, ignored otherwise. // TODO: Should move all the stuff below to bits. bool physics_process = false; @@ -341,10 +344,14 @@ public: /* PROCESSING */ void set_physics_process(bool p_process); double get_physics_process_delta_time() const; + double get_physics_process_cumulative_time() const; + double get_physics_process_total_time() const; bool is_physics_processing() const; void set_process(bool p_process); double get_process_delta_time() const; + double get_process_cumulative_time() const; + double get_process_total_time() const; bool is_processing() const; void set_physics_process_internal(bool p_process_internal); |