Update RBC_CPP.cpp

Version with a better timing function.