On Mon, Jan 7, 2013 at 8:39 PM, Josh Aas <josh...@gmail.com> wrote:

> I was working on something for which TimeStamp and TimeDuration classes
> would be helpful in simplifying code that deals with a cache expiration
> date. This code does not require high-precision timing. In review I was
> told that "TimeStamp shouldn't be used unless a hi-precision ms resolution
> is needed", and that TimeStamp was particularly expensive on Windows due to
> the use of QueryPerfomanceCounter.
>

Who told you this?

The original goal was for TimeStamp to be comparable in performance to
PR_IntervalNow, i.e. as fast as anything else we have. That hasn't changed
to my knowledge.

Rob
-- 
Jesus called them together and said, “You know that the rulers of the
Gentiles lord it over them, and their high officials exercise authority
over them. Not so with you. Instead, whoever wants to become great among
you must be your servant, and whoever wants to be first must be your
slave — just
as the Son of Man did not come to be served, but to serve, and to give his
life as a ransom for many.” [Matthew 20:25-28]
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to