зеркало из https://github.com/mozilla/pjs.git
re-fix for the Mac after working with Pav to make all the tests compile on Linux
This commit is contained in:
Родитель
23735ae8a7
Коммит
eaec5d153b
|
@ -1,4 +1,4 @@
|
|||
// StringTest.Prefix
|
||||
|
||||
#define SCC_TESTS
|
||||
#define STANDALONE_STRING_TESTS
|
||||
#define NEW_STRING_APIS
|
||||
|
|
Двоичные данные
xpcom/tests/StringFactoringTests/StringTest.mcp
Двоичные данные
xpcom/tests/StringFactoringTests/StringTest.mcp
Двоичный файл не отображается.
|
@ -2,10 +2,10 @@
|
|||
|
||||
#include "nscore.h"
|
||||
#include "prlong.h"
|
||||
#include "prtime.h"
|
||||
#include <iostream.h>
|
||||
#include <string>
|
||||
#include <iomanip>
|
||||
#include <sys/time.h>
|
||||
|
||||
#ifdef XP_MAC
|
||||
#include "Profiler.h"
|
||||
|
@ -74,9 +74,15 @@ class TestTimer
|
|||
|
||||
~TestTimer()
|
||||
{
|
||||
PRTime stopTime = PR_Now();
|
||||
PRTime totalTime = stopTime - mStartTime;
|
||||
PRTime stopTime = PR_Now();
|
||||
PRTime totalTime = stopTime - mStartTime;
|
||||
#ifdef HAVE_LONG_LONG
|
||||
cout << setw(10) << totalTime << " µs : ";
|
||||
#else
|
||||
if ( totalTime.hi )
|
||||
cout << "*";
|
||||
cout << setw(10) << totalTime.lo << "µs : ";
|
||||
#endif
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Загрузка…
Ссылка в новой задаче