public void update(int length, long rtpts) throws IOException {
		mPacketCount += 1;
		mOctetCount += length;
		setLong(mPacketCount, 20, 24);
		setLong(mOctetCount, 24, 28);

		now = SystemClock.elapsedRealtime();
		delta += oldnow != 0 ? now-oldnow : 0;
		oldnow = now;
		if (interval>0 && delta>=interval) {
			// We send a Sender Report
			send(System.nanoTime(), rtpts);
			delta = 0;
		}
		
	}
Updates the number of packets sent, and the total amount of data sent.
@param length The length of the packet 
@param rtpts
           The RTP timestamp.
@throws IOException
src/net/majorkernelpanic/streaming/rtcp/SenderReport.java