[Ns-developers] NS3 Time objects

George Riley riley at ece.gatech.edu
Mon Oct 30 12:04:28 PST 2006


------------------------------------------------------------------------ 
--------------------
Dr. George F. Riley, Assistant Professor
The School of Electrical and Computer Engineering at Georgia Tech
Atlanta, GA  30332-0250
(404)-894-4767
E-Mail: riley at ece.gatech.edu

ECE3090 Web Page: http://users.ece.gatech.edu/~riley/ece3090/
ECE4110 Web Page: http://users.ece.gatech.edu/~riley/ece4110/
CS1372/CS1803 Web Page: http://www-static.cc.gatech.edu/classes/ 
AY2007/cs1372_fall/


On Oct 30, 2006, at 2:07 PM, Gustavo Carneiro wrote:

> On 10/30/06, George Riley <riley at ece.gatech.edu> wrote:
> // 5) Multiplication or division of time objects by other time objects
> // is meaningless in ns3, and should not compile.
>
>   I agree that multiplication of time objects doesn't make sense,  
> but division of time objects makes perfect sense.  Example:
>
>   link_occupation_fraction = (SUM(link_tx_end_time -  
> link_tx_start_time) / total_simulation_time);
>
Right again; will fix.  However, do you agree the return type is a  
dimensionless double,
not a Time object?

George
>   Regards,
>
> -- 
> Gustavo J. A. M. Carneiro
> "The universe is always one step beyond logic."



More information about the Ns-developers mailing list