mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
23 lines
337 B
C++
23 lines
337 B
C++
#include <Core/Core.h>
|
|
|
|
using namespace Upp;
|
|
|
|
dword qqq;
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
StdLogSetup(LOG_COUT|LOG_FILE);
|
|
|
|
String s;
|
|
for(int i = 0; i < 1000000; i++)
|
|
s.Cat(i);
|
|
|
|
for(int i = 0; i < 1000; i++) {
|
|
StringStream ss(s);
|
|
RTIMING("Time");
|
|
int q = 0;
|
|
while(!ss.IsEof())
|
|
q += ss.Get32();
|
|
qqq += q;
|
|
}
|
|
}
|