Adding cps measuring function to DepthCharge.