Index

Package: Support.Real_Time

Description

package Support.Real_Time is

Types

Timer_Type

type Timer_Type is limited private;

References:

support-real_time.ads:7:10 (declaration)
support-real_time.adb:9:27 (reference)
support-real_time.adb:25:30 (reference)
support-real_time.adb:32:33 (reference)
support-real_time.adb:42:35 (reference)
support-real_time.adb:51:33 (reference)
support-real_time.ads:10:27 (reference)
support-real_time.ads:13:30 (reference)
support-real_time.ads:17:33 (reference)
support-real_time.ads:20:35 (reference)
support-real_time.ads:24:33 (reference)
support-real_time.ads:75:10 (full declaration)
tiles-libraries-loading.adb:101:19 (reference)

Frame_Timer

type Frame_Timer is limited private;

References:

support-real_time.ads:28:10 (declaration)
processes-managers.adb:324:28 (reference)
support-real_time.adb:67:30 (reference)
support-real_time.adb:74:31 (reference)
support-real_time.adb:82:32 (reference)
support-real_time.adb:90:44 (reference)
support-real_time.adb:97:32 (reference)
support-real_time.ads:33:30 (reference)
support-real_time.ads:36:31 (reference)
support-real_time.ads:39:32 (reference)
support-real_time.ads:42:44 (reference)
support-real_time.ads:45:32 (reference)
support-real_time.ads:82:10 (full declaration)

Subprograms & Entries

Elapsed

function Elapsed
( t: Timer_Type )
return Time_Span;

References:

support-real_time.ads:10:14 (declaration)
support-real_time.adb:9:14 (body)
support-real_time.adb:21:9 (label)
tiles-libraries-loading.adb:112:56 (reference)

Called by:

Tiles.Libraries.Loading.Loading_Task defined at tiles-libraries-loading.adb:93:15

Calls:

- defined at a-reatim.ads:60:13
> defined at a-reatim.ads:64:13
Clock defined at a-reatim.ads:55:13
Return the elapsed time counted by the timer.

Is_Running

function Is_Running
( t: Timer_Type )
return Boolean;

References:

support-real_time.ads:13:14 (declaration)
support-real_time.adb:25:14 (body)
support-real_time.adb:28:9 (label)
Returns True if the timer has been started and isn't paused.

Pause

procedure Pause
( t: in out Timer_Type );

References:

support-real_time.ads:17:15 (declaration)
support-real_time.adb:32:15 (body)
support-real_time.adb:38:9 (label)

Calls:

Clock defined at a-reatim.ads:55:13
Pauses the timer. Elapsed time will not accumulate until the timer is started again.

Restart

procedure Restart
( t: in out Timer_Type );

References:

support-real_time.ads:20:15 (declaration)
support-real_time.adb:42:15 (body)
support-real_time.adb:47:9 (label)
tiles-libraries-loading.adb:109:13 (reference)

Called by:

Tiles.Libraries.Loading.Loading_Task defined at tiles-libraries-loading.adb:93:15
Clears elapsed time and starts the timer again.

Start

procedure Start
( t: in out Timer_Type );

References:

support-real_time.ads:24:15 (declaration)
support-real_time.adb:46:9 (reference)
support-real_time.adb:51:15 (body)
support-real_time.adb:63:9 (label)

Called by:

Restart defined at support-real_time.ads:20:15

Calls:

- defined at a-reatim.ads:59:13
- defined at a-reatim.ads:60:13
Clock defined at a-reatim.ads:55:13
Starts or resumes the timer. This will have no effect if the timer is already running.

Is_Updated

function Is_Updated
( t: Frame_Timer )
return Boolean;

References:

support-real_time.ads:33:14 (declaration)
processes-managers.adb:365:20 (reference)
support-real_time.adb:67:14 (body)
support-real_time.adb:70:9 (label)

Called by:

Processes.Managers.Ticker_Task.Tick defined at processes-managers.adb:329:19
Returns true if the rate has been updated since the last check. Note that this doesn't mean the rate has changed in value, it means it has been recalculated.

Rate

function Rate
( t: access Frame_Timer )
return Natural;

References:

support-real_time.ads:36:14 (declaration)
processes-managers.adb:366:34 (reference)
support-real_time.adb:74:14 (body)
support-real_time.adb:78:9 (label)

Called by:

Processes.Managers.Ticker_Task.Tick defined at processes-managers.adb:329:19
Returns the current frame rate. The value returned is FPS.

Rate

procedure Rate
( t: in out Frame_Timer;
fps: out Natural );

References:

support-real_time.ads:39:15 (declaration)
support-real_time.adb:82:15 (body)
support-real_time.adb:86:9 (label)
Returns the current frame rate.

Set_Update_Delay

procedure Set_Update_Delay
( t: in out Frame_Timer;
ts: Time_Span );

References:

support-real_time.ads:42:15 (declaration)
support-real_time.adb:90:15 (body)
support-real_time.adb:93:9 (label)
Sets the minimum time to collect ticks before updating the current rate

Tick

procedure Tick
( t: in out Frame_Timer );

References:

support-real_time.ads:45:15 (declaration)
processes-managers.adb:364:17 (reference)
support-real_time.adb:97:15 (body)
support-real_time.adb:107:9 (label)

Called by:

Processes.Managers.Ticker_Task.Tick defined at processes-managers.adb:329:19

Calls:

- defined at a-reatim.ads:59:13
- defined at a-reatim.ads:60:13
/ defined at a-reatim.ads:73:13
/ defined at a-reatim.ads:72:13
>= defined at a-reatim.ads:65:13
Clock defined at a-reatim.ads:55:13
Seconds defined at a-reatim.ads:89:13
Notifies the timer of a complete frame.

Format

function Format
( ts: Time_Span )
return String;

References:

support-real_time.ads:49:14 (declaration)
support-real_time.adb:111:14 (body)
support-real_time.adb:121:9 (label)
support-real_time.ads:50:27 (reference)

To_Float

function To_Float
( ts: Time_Span )
return Long_Float;

References:

support-real_time.ads:52:14 (declaration)
support-real_time.adb:125:14 (body)
support-real_time.adb:128:9 (label)

Calls:

To_Duration defined at a-reatim.ads:82:13

To_Microseconds

function To_Microseconds
( ts: Time_Span )
return Natural;

References:

support-real_time.ads:54:14 (declaration)
support-real_time.adb:132:14 (body)
support-real_time.adb:135:9 (label)

Calls:

To_Duration defined at a-reatim.ads:82:13

To_Milliseconds

function To_Milliseconds
( ts: Time_Span )
return Natural;

References:

support-real_time.ads:56:14 (declaration)
support-real_time.adb:115:27 (reference)
support-real_time.adb:139:14 (body)
support-real_time.adb:142:9 (label)
tiles-libraries-loading.adb:112:39 (reference)

Called by:

Format defined at support-real_time.ads:49:14
Tiles.Libraries.Loading.Loading_Task defined at tiles-libraries-loading.adb:93:15

Calls:

To_Duration defined at a-reatim.ads:82:13

To_Minutes

function To_Minutes
( ts: Time_Span )
return Natural;

References:

support-real_time.ads:58:14 (declaration)
support-real_time.adb:119:27 (reference)
support-real_time.adb:146:14 (body)
support-real_time.adb:149:9 (label)

Called by:

Format defined at support-real_time.ads:49:14

Calls:

To_Duration defined at a-reatim.ads:82:13

To_Seconds

function To_Seconds
( ts: Time_Span )
return Natural;

References:

support-real_time.ads:60:14 (declaration)
support-real_time.adb:112:36 (reference)
support-real_time.adb:153:14 (body)
support-real_time.adb:156:9 (label)

Called by:

Format defined at support-real_time.ads:49:14

Calls:

To_Duration defined at a-reatim.ads:82:13

To_String

function To_String
( t: Time )
return String;

References:

support-real_time.ads:62:14 (declaration)
support-real_time.adb:160:14 (body)
support-real_time.adb:170:9 (label)

Calls:

Ada.Text_IO.Float_IO.Put defined at a-tiflio.ads:80:14
Split defined at a-reatim.ads:102:14
To_Duration defined at a-reatim.ads:82:13
Trim defined at a-strfix.ads:186:13

To_String

function To_String
( ts: Time_Span;
precision: Natural := 3 )
return String;

References:

support-real_time.ads:64:14 (declaration)
support-real_time.adb:174:14 (body)
support-real_time.adb:181:9 (label)

Calls:

Ada.Text_IO.Float_IO.Put defined at a-tiflio.ads:80:14
To_Duration defined at a-reatim.ads:82:13
Trim defined at a-strfix.ads:186:13

Time_Input

function Time_Input
( stream: access Root_Stream_Type'Class )
return Time;

References:

support-real_time.ads:69:14 (declaration)
support-real_time.adb:185:14 (body)
support-real_time.adb:194:9 (label)

Calls:

+ defined at a-reatim.ads:57:13
- defined at a-reatim.ads:59:13
Clock defined at a-reatim.ads:55:13

Time_Output

procedure Time_Output
( stream: access Root_Stream_Type'Class;
t: Time );

References:

support-real_time.ads:71:15 (declaration)
support-real_time.adb:198:15 (body)
support-real_time.adb:208:9 (label)

Calls:

- defined at a-reatim.ads:60:13
> defined at a-reatim.ads:64:13
Clock defined at a-reatim.ads:55:13