Bug 4 - Cryptic Time API
Cryptic Time API
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: core
pre-release
PC Linux
: P1 blocker
Assigned To: ns-bugs
: api
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-10-21 10:53 EDT by Gustavo J. A. M. Carneiro
Modified: 2008-07-01 13:32 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo J. A. M. Carneiro 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 Mathieu Lacage 2006-12-04 07:55:00 EST
The new methods are named GetSeconds, GetMicroSeconds, GetNanoSeconds, etc.