countob.via

来自「用VB6写的真正的32位高级语言可视程序编译器」· VIA 代码 · 共 21 行

VIA
21
字号
// CountOB.lnl

application PE GUI; include "win32a.inc";

dword i,StartPoint,RunTime,Remainder; string sBuffer;

entry
    MessageBox(0,"Starting While Loop..","Linley Compiler",$20);

    StartPoint = GetTickCount();

    while (i<1000000000) {
         i++;
    }

    RunTime = (GetTickCount()-StartPoint)/1000;
    Remainder = (GetTickCount()-StartPoint)%1000;
    Format(sBuffer,"Time needed: %d.%d seconds.",RunTime,Remainder);
    MessageBox(0,sBuffer,"Loop..",$20);
end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?