re-fix for the Mac after working with Pav to make all the tests compile on Linux

This commit is contained in:
scc%netscape.com 2000-03-25 05:44:57 +00:00
Родитель 23735ae8a7
Коммит eaec5d153b
3 изменённых файлов: 10 добавлений и 4 удалений

Просмотреть файл

@ -1,4 +1,4 @@
// StringTest.Prefix
#define SCC_TESTS
#define STANDALONE_STRING_TESTS
#define NEW_STRING_APIS

Двоичные данные
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: