mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 23:10:24 +02:00
* remove Windows use
git-svn-id: trunk@2639 -
This commit is contained in:
parent
2c10e841b9
commit
3d0a4da8ff
@ -1,10 +1,10 @@
|
|||||||
program Bench2;
|
program Bench2;
|
||||||
{$APPTYPE CONSOLE}
|
{$APPTYPE CONSOLE}
|
||||||
|
{$Mode Objfpc}
|
||||||
{$H+}
|
{$H+}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
sysutils,
|
sysutils;
|
||||||
Windows;
|
|
||||||
|
|
||||||
const
|
const
|
||||||
cTimes = 999999;
|
cTimes = 999999;
|
||||||
@ -21,6 +21,16 @@ const
|
|||||||
'zero', 'ten', 'twenty', 'thirty', 'fourty', 'fifty',
|
'zero', 'ten', 'twenty', 'thirty', 'fourty', 'fifty',
|
||||||
'sixty', 'seventy', 'eighty', 'ninety');
|
'sixty', 'seventy', 'eighty', 'ninety');
|
||||||
|
|
||||||
|
|
||||||
|
function GetTickCount : Cardinal;
|
||||||
|
var
|
||||||
|
h,m,s,s1000 : word;
|
||||||
|
begin
|
||||||
|
decodetime(time,h,m,s,s1000);
|
||||||
|
result:=h*3600000+m*60000+s*1000+s1000;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
var
|
var
|
||||||
StartTick: Cardinal;
|
StartTick: Cardinal;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user