[Sumover-dev] [svn commit] r4610 - vic/branches/cc/rtp
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Thu Feb 11 19:30:42 GMT 2010
Author: soohyunc
Date: Thu Feb 11 19:30:42 2010
New Revision: 4610
Modified:
vic/branches/cc/rtp/transmitter.h
Log:
Transmitter timestamp and its offset.
Modified: vic/branches/cc/rtp/transmitter.h
==============================================================================
--- vic/branches/cc/rtp/transmitter.h (original)
+++ vic/branches/cc/rtp/transmitter.h Thu Feb 11 19:30:42 2010
@@ -99,6 +99,14 @@
//pktbuf* alloch(u_int32_t, int fmt);
//void release(pktbuf*);
//pktbuf* alloc(u_int32_t, int fmt);
+
+ inline double tx_now() {
+ timeval tv;
+ ::gettimeofday(&tv, NULL);
+ return ((double) tv.tv_sec + 1e-6 * (double) tv.tv_usec);
+ }
+ double tx_now_offset_;
+
protected:
void update(int nbytes);
void dump(int fd, iovec*, int iovel) const;
More information about the Sumover-dev
mailing list