// // timer.hpp // mc_electron // // Created by Christian Reiling on 07.05.19. // Copyright © 2019 Christian Reiling. All rights reserved. // #ifndef timer_hpp #define timer_hpp class Timer { static const double wgtsT2MaxDensity_m3; double T2_activity_s; double offset_time_s; long int *local_decays; long int *global_decays; public: Timer () {}; Timer(long int *local_decays, long int *global_decays) { this->local_decays = local_decays; this->global_decays = global_decays; offset_time_s = 0; set_T2_activity_s(); } //Timer(const Timer& other); //Timer& operator=(const Timer& other); void set_offset_time_s(double new_offset_time_s) {offset_time_s = new_offset_time_s;} private: void set_T2_activity_s(); public: double get_time_s(); private: long int calc_total_decays(); }; #endif /* timer_hpp */