improve cpu usuage calculate