mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
.upptst
This commit is contained in:
parent
a86d2b8980
commit
e2ab76cef9
2 changed files with 27 additions and 0 deletions
9
upptst/ChCacheTest/ChCacheTest.upp
Normal file
9
upptst/ChCacheTest/ChCacheTest.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
uses
|
||||||
|
CtrlLib;
|
||||||
|
|
||||||
|
file
|
||||||
|
main.cpp;
|
||||||
|
|
||||||
|
mainconfig
|
||||||
|
"" = "GUI";
|
||||||
|
|
||||||
18
upptst/ChCacheTest/main.cpp
Normal file
18
upptst/ChCacheTest/main.cpp
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
#include <CtrlLib/CtrlLib.h>
|
||||||
|
|
||||||
|
using namespace Upp;
|
||||||
|
|
||||||
|
|
||||||
|
GUI_APP_MAIN
|
||||||
|
{
|
||||||
|
for(;;) {
|
||||||
|
Progress progress;
|
||||||
|
progress.Create();
|
||||||
|
progress.SetTotal(20000);
|
||||||
|
for(int i=0;i<20000;i++){
|
||||||
|
if(progress.Canceled()) return;
|
||||||
|
progress.SetPos(i);
|
||||||
|
progress.SetText(Format("MemoryUsedKb %d", MemoryUsedKb()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue