Bug 4 - Cryptic Time API
: Cryptic Time API
Status: RESOLVED FIXED
: ns-3
simulation core
: pre-release
: PC Linux
: P1 blocker
Assigned To:
:
: api
:
:
  Show dependency treegraph
 
Reported: 2006-10-21 10:53 EDT by
Modified: 2008-07-01 13:32 EDT (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2006-10-21 10:53:11 EDT
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 From 2006-12-04 07:55:00 EDT -------
The new methods are named GetSeconds, GetMicroSeconds, GetNanoSeconds, etc.