collect timing stats for RPC calls