Test suite results for test file webtbs/tw2274.pp

Test run data :

Free Pascal Compiler Test Suite Results

View Test suite results

Please specify search criteria:
File:
Operating system:
Processor:
Version
Date
Submitter
Machine
Comment
Limit
Cond
Category
Only failed tests
Hide skipped tests
List all tests

Test file "webtbs/tw2274.pp" information:

t_id 1071
t_adddate 2003/10/14
t_result 0
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=0 Percentage= 0.00

Skipped=50 Percentage= 100.00

Result type Cat. Count Percentage First date Last Date
Skipping test run because it is a unit 50 100.0 2024/05/17 13:34:00 47 2024/05/17 23:42:00 43
i386 17 34.0 2024/05/17 22:07:00 21 2024/05/17 23:41:00 23
sparc 14 28.0 2024/05/17 23:24:00 38 2024/05/17 23:42:00 43
powerpc 1 2.0 2024/05/17 21:13:00 42 2024/05/17 21:13:00 42
x86_64 2 4.0 2024/05/17 13:34:00 47 2024/05/17 14:42:00 39
powerpc64 13 26.0 2024/05/17 20:12:00 105 2024/05/17 20:54:00 132
aarch64 3 6.0 2024/05/17 16:15:00 32 2024/05/17 16:28:00 32
linux 14 28.0 2024/05/17 20:12:00 105 2024/05/17 21:13:00 42
win32 5 10.0 2024/05/17 22:07:00 21 2024/05/17 23:41:00 23
solaris 26 52.0 2024/05/17 23:23:00 25 2024/05/17 23:42:00 43
darwin 3 6.0 2024/05/17 16:15:00 32 2024/05/17 16:28:00 32
win64 2 4.0 2024/05/17 13:34:00 47 2024/05/17 14:42:00 39
3.3.1 40 80.0 2024/05/17 13:34:00 47 2024/05/17 23:42:00 43
3.2.3 10 20.0 2024/05/17 16:15:00 32 2024/05/17 23:41:00 38

Source:

{ Source provided for Free Pascal Bug Report 2274 }
{ Submitted by "Sergey Kosarevsky" on  2002-12-21 }
{ e-mail: netsurfer@au.ru }
Unit tw2274;

{$STATIC ON}

Interface

Type Lfloat=Single;

Type pTimer=^tTimer;
     tTimer=Object
       Private
        RecepCyclesPerSecond:Lfloat;Static;        //     1/CyclesPerSecond
        OldCycles:Int64;
        NewCycles:Int64;
        WorldUpTime:Lfloat;
       Public
        Constructor Init;
        // tTimer
        Function GetDeltaSeconds:Lfloat;
        Function GetWorldTime:Lfloat;          // in seconds
        Function GetCycles:Int64;Static;
        Function GetSeconds:Lfloat;
     End;

Implementation

Constructor tTimer.Init;
Begin
   RecepCyclesPerSecond:=0;
   OldCycles:=GetCycles;
End;

Function tTimer.GetWorldTime:Lfloat;
Begin
   Exit(GetSeconds-WorldUpTime);
End;

Function tTimer.GetCycles:Int64;
begin
  GetCycles:=0;
End;

Function tTimer.GetDeltaSeconds:Lfloat;
Begin
   NewCycles:=GetCycles;
   GetDeltaSeconds:=(NewCycles-OldCycles)*RecepCyclesPerSecond;
   OldCycles:=NewCycles;
End;

Function tTimer.GetSeconds:Lfloat;
Begin
   Exit(GetCycles*RecepCyclesPerSecond);
End;

Begin
End.

Link to SVN view of webtbs/tw2274.pp source.