1. with Ada.Text_IO;  use Ada.Text_IO; 
  2. with Ada.Calendar; use Ada.Calendar; 
  3.  
  4. procedure Timestamp is 
  5.  
  6.    No_of_Iterations    : constant Positive := 10; 
  7.    Delay_Per_Iteration : constant Duration := 1.0; 
  8.  
  9.    Start_Up_Time : constant Time := Clock; 
  10.  
  11.    subtype Repeat_for is Positive range 1 .. No_of_Iterations; 
  12.  
  13. begin 
  14.    for i in Repeat_for loop 
  15.       declare 
  16.          Now : constant Time := Clock; 
  17.       begin 
  18.          Put (Day_Number'Image   (Day     (Now)) & "."); 
  19.          Put (Month_Number'Image (Month   (Now)) & "."); 
  20.          Put (Year_Number'Image  (Year    (Now)) & " at"); 
  21.          Put (Day_Duration'Image (Seconds (Now)) & " seconds - Seconds since start up:"); 
  22.          Put (Duration'Image (Now - Start_Up_Time)); 
  23.          New_Line; 
  24.          delay Delay_Per_Iteration; 
  25.       end; 
  26.    end loop; 
  27. end Timestamp;