Skip to content

Commit

Permalink
M agpl-chronos.adb
Browse files Browse the repository at this point in the history
M    agpl-chronos.ads
  • Loading branch information
mosteo committed Jul 17, 2006
1 parent ec9c68f commit dc436cd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions agpl-chronos.adb
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,13 @@ package body Agpl.Chronos is
return (Start => Ada.Calendar.Clock);
end Clock;

-----------
-- Value --
-----------

function Value (This : in Object) return Ada.Calendar.Time is
begin
return This.Start;
end Value;

end Agpl.Chronos;
4 changes: 4 additions & 0 deletions agpl-chronos.ads
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ package Agpl.Chronos is
------------------------------------------------------------------------
function Image (This : in Object) return String;

function Value (This : in Object) return Ada.Calendar.Time;
pragma Inline (Value);
-- This start time of this object

function Clock return Object; -- An object denoting current time
pragma Inline (Clock);

Expand Down

0 comments on commit dc436cd

Please sign in to comment.