Fed's Barr: If inflation doesn't moderate soon, it will be time for an interest rate hike.