Bug 564613. Add documentation to TimeStamp comparing it to C++11's time_point. r=cjones

--HG--
extra : rebase_source : dc9f17795565031874f11956cea168bbcee1b616
This commit is contained in:
Jeff Muizelaar 2011-10-06 11:08:59 -04:00
parent 9a71cdd844
commit 4170d0da18

View File

@ -186,6 +186,12 @@ private:
* platform
* - PRIntervalTime otherwise. We detect wraparounds of
* PRIntervalTime and work around them.
*
* This class is similar to C++11's time_point, however it is
* explicitly nullable and provides an IsNull() method. time_point
* is initialized to the clock's epoch and provides a
* time_since_epoch() method that functions similiarly. i.e.
* t.IsNull() is equivalent to t.time_since_epoch() == decltype(t)::duration::zero();
*/
class TimeStamp
{