зеркало из https://github.com/mozilla/pjs.git
- Change bool to PRBool in Stopwatch::Start()
- Add the NS_TIMER_STYLE_RESOLUTION define to nsITimeRecorder.idl
This commit is contained in:
Родитель
a67ae1e683
Коммит
22dac726b0
|
@ -19,6 +19,10 @@
|
|||
|
||||
#include "nsISupports.idl"
|
||||
|
||||
%{C++
|
||||
#define NS_TIMER_STYLE_RESOLUTION 1
|
||||
%}
|
||||
|
||||
[scriptable, uuid(0e5f5cb6-6d29-11d3-aef7-00108300ff91)]
|
||||
interface nsITimeRecorder : nsISupports
|
||||
{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#include "nscore.h"
|
||||
|
||||
const double gTicks = 1.0e-7;
|
||||
|
||||
#ifdef RAPTOR_PERF_METRICS
|
||||
|
|
|
@ -15,7 +15,7 @@ Stopwatch::Stopwatch() {
|
|||
}
|
||||
|
||||
|
||||
void Stopwatch::Start(bool reset) {
|
||||
void Stopwatch::Start(PRBool reset) {
|
||||
if (reset) {
|
||||
fTotalCpuTime = 0;
|
||||
fTotalRealTime = 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче