calculate camera fps