Bug 4

Summary: Cryptic Time API
Product: ns-3 Reporter: Gustavo J. A. M. Carneiro <gjcarneiro>
Component: coreAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: blocker Keywords: api
Priority: P1    
Version: pre-release   
Hardware: PC   
OS: Linux   

Description Gustavo J. A. M. Carneiro 2006-10-21 10:53:11 UTC
As I explained in [1], the current ns3 Time API contains very cryptic method names S(), nS(), and uS(), which I argue are harmful for code readability.  I suggest renaming to Seconds(), MicroSeconds(), NanoSeconds().

I also argue that the extra typing does not really affect much code in practice because convertion of Time() to a numeric value is (or should be) seldom necessary.

[1] http://mailman.isi.edu/pipermail/ns-developers/2006-October/002468.html
Comment 1 Mathieu Lacage 2006-12-04 07:55:00 UTC
The new methods are named GetSeconds, GetMicroSeconds, GetNanoSeconds, etc.