Bug 1456672 - Add a brief note that we prefer to pass TimeStamp objects by value. r=heycam,kats DONTBUILD

MozReview-Commit-ID: 6EvYJvBv5DF

--HG--
extra : rebase_source : 054ca1491ebbdc4788f90bf9fc60da75130b9af8
This commit is contained in:
Hiroyuki Ikezoe 2018-04-26 14:53:23 +09:00
Родитель 5df2666ad7
Коммит 30abf8cc5d
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -403,6 +403,9 @@ typedef BaseTimeDuration<TimeDurationValueCalculator> TimeDuration;
* 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();
*
* Note that, since TimeStamp objects are small, prefer to pass them by value
* unless there is a specific reason not to do so.
*/
class TimeStamp
{