|
发表于 2021-1-13 21:50:03
|
显示全部楼层
广西壮族自治区柳州市
楼主,欢迎加入 aardio 测试一波.
- import win.ui;
- import time;
- /*DSG{{*/
- var winform = win.form(text="aardio form";right=470;bottom=388)
- winform.add(
- button={cls="button";text="开始";left=319;top=333;right=443;bottom=379;z=2};
- edit={cls="edit";left=12;top=8;right=455;bottom=321;edge=1;hscroll=1;multiline=1;z=1}
- )
- /*}}*/
- winform.button.oncommand = function(id,event){
- var a = 1997;
- var b = time.tick();
- var c = 0;
-
- for(i=1;10000000;1){
- c = c + a * a
- }
-
- winform.edit.text = winform.edit.text ++ "时间: " ++ tonumber(time.tick()-b) ++ '\r\n' ++ "答案: " ++ c ++ '\r\n'
- }
- winform.show();
- win.loopMessage();
复制代码 |
|