mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 01:10:22 +00:00
- Change bool to PRBool in Stopwatch::Start()
- Add the NS_TIMER_STYLE_RESOLUTION define to nsITimeRecorder.idl
This commit is contained in:
parent
95fca3acb9
commit
d58a65a956
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user