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.

TimeStamp doesn't seem to have been created with a heavy speed for accuracy 
tradeoff in mind. Is this true? If so, should there be a less expensive way to 
use it, such as an option or default for lower accuracy?
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to