mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
.benchmarks
git-svn-id: svn://ultimatepp.org/upp/trunk@13418 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
2676ced698
commit
717de82a88
2 changed files with 36 additions and 0 deletions
9
benchmarks/ArrayCtrlSort/ArrayCtrlSort.upp
Normal file
9
benchmarks/ArrayCtrlSort/ArrayCtrlSort.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
uses
|
||||||
|
CtrlLib;
|
||||||
|
|
||||||
|
file
|
||||||
|
main.cpp;
|
||||||
|
|
||||||
|
mainconfig
|
||||||
|
"" = "GUI";
|
||||||
|
|
||||||
27
benchmarks/ArrayCtrlSort/main.cpp
Normal file
27
benchmarks/ArrayCtrlSort/main.cpp
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
#include <CtrlLib/CtrlLib.h>
|
||||||
|
|
||||||
|
using namespace Upp;
|
||||||
|
|
||||||
|
GUI_APP_MAIN
|
||||||
|
{
|
||||||
|
ArrayCtrl list;
|
||||||
|
list.AddColumn("int").Sorting();
|
||||||
|
list.AddColumn("int64").Sorting();
|
||||||
|
list.AddColumn("double").Sorting();
|
||||||
|
list.AddColumn("String").Sorting();
|
||||||
|
list.AddColumn("Date").Sorting();
|
||||||
|
list.AddColumn("Time").Sorting();
|
||||||
|
|
||||||
|
#ifdef _DEBUG
|
||||||
|
for(int i = 0; i < 2000; i++)
|
||||||
|
#else
|
||||||
|
for(int i = 0; i < 200000; i++)
|
||||||
|
#endif
|
||||||
|
list.Add((int)Random(), (int64)Random64(), Randomf(), AsString(Random()),
|
||||||
|
GetSysTime() + (int64)Random(100000), GetSysDate() + Random(10000));
|
||||||
|
|
||||||
|
TopWindow win;
|
||||||
|
win.Sizeable().Zoomable();
|
||||||
|
win.Add(list.SizePos());
|
||||||
|
win.Run();
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue