create calc_frame_rate.cpp
update calc_frame_rate.cpp
clean calc_frame_rate.cpp