зеркало из https://github.com/mozilla/gecko-dev.git
Changes should not affect build. Ongoing work to make the stopwatch code build on Unix.
This commit is contained in:
Родитель
f0ddb93dbc
Коммит
36d1076a0a
|
@ -1,5 +1,6 @@
|
|||
#ifndef __STOPWATCH_H
|
||||
#define __STOPWATCH_H
|
||||
#include "xp_core.h"
|
||||
#include "nscore.h"
|
||||
#include "prlog.h"
|
||||
#include "nsDeque.h"
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
#include "windows.h"
|
||||
#include <stdio.h>
|
||||
#include "stopwatch.h"
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#ifdef XP_WIN
|
||||
#include "windows.h"
|
||||
#endif
|
||||
|
||||
Stopwatch::Stopwatch() {
|
||||
|
||||
|
@ -179,7 +181,7 @@ double Stopwatch::GetCPUTime(){
|
|||
ret = GetProcessTimes (hProcess, &ftCreate, &ftExit,
|
||||
&ftKernel.ftFileTime,
|
||||
&ftUser.ftFileTime);
|
||||
if (ret != TRUE){
|
||||
if (ret != PR_TRUE){
|
||||
ret = GetLastError ();
|
||||
printf("%s 0x%lx\n"," Error on GetProcessTimes", (int)ret);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче