Ada Programming/Libraries/Ada.Execution Time.Timers
This language feature is only available from Ada 2005 on.
Ada.Execution_Time. is a unit of the Predefined Language Environment since Ada 2005.
Specification
-- Standard Ada library specification -- Copyright (c) 2003-2018 Maxim Reznik <reznikmm@gmail.com> -- Copyright (c) 2004-2016 AXE Consultants -- Copyright (c) 2004, 2005, 2006 Ada-Europe -- Copyright (c) 2000 The MITRE Corporation, Inc. -- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc. -- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaReferenceManual -- -------------------------------------------------------------------------withSystem;packageAda.Execution_Time.istypeTimer (T :notnullaccessconstantAda.Task_Identification.Task_Id)istaggedlimitedprivate;typeTimer_Handlerisaccessprotectedprocedure(TM :inoutTimer); Min_Handler_Ceiling :constantSystem.Any_Priority := implementation_defined;procedureSet_Handler (TM :inoutTimer; In_Time :inAda.Real_Time.Time_Span; Handler :inTimer_Handler);procedureSet_Handler (TM :inoutTimer; At_Time :inCPU_Time; Handler :inTimer_Handler);functionCurrent_Handler (TM : Timer)returnTimer_Handler;procedureCancel_Handler (TM :inoutTimer; Cancelled :outBoolean);functionTime_Remaining (TM : Timer)returnAda.Real_Time.Time_Span; Timer_Resource_Error :exception;privatepragmaImport (Ada, Timer);endAda.Execution_Time.Timers;
See also
Wikibook
External examples
- Search for examples of
Ada.Execution_Time.Timersin: Rosetta Code, GitHub (gists), any Alire crate or this Wikibook. - Search for posts related to
Ada.Execution_Time.Timersin: Stack Overflow, comp.lang.ada or any Ada related page.
Ada Reference Manual
Ada 2005
Ada 2012
Open-Source Implementations
FSF GNAT
- Specification: a-extiti.ads
drake
- Specification: tasking/a-extiti.ads