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/08 01:35:00 28 2024/05/08 03:20:00 28
i386 17 34.0 2024/05/08 01:35:00 28 2024/05/08 03:20:00 28
sparc 1 2.0 2024/05/08 03:19:00 46 2024/05/08 03:19:00 46
x86_64 28 56.0 2024/05/08 01:57:00 16 2024/05/08 03:19:00 35
powerpc64 3 6.0 2024/05/08 02:58:00 55 2024/05/08 03:15:00 57
aarch64 1 2.0 2024/05/08 03:06:00 37 2024/05/08 03:06:00 37
linux 48 96.0 2024/05/08 01:35:00 28 2024/05/08 03:20:00 28
go32v2 1 2.0 2024/05/08 03:07:00 55 2024/05/08 03:07:00 55
solaris 1 2.0 2024/05/08 03:19:00 46 2024/05/08 03:19:00 46
3.3.1 19 38.0 2024/05/08 01:35:00 28 2024/05/08 03:19:00 46
3.2.3 31 62.0 2024/05/08 01:50:00 31 2024/05/08 03:20:00 28

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.