From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,75c440b4b7ed5f91 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn11feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: Real Time IO routines Reply-To: anon@anon.org (anon) References: <1193410739.367181.96050@50g2000hsm.googlegroups.com> X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Sat, 27 Oct 2007 08:56:42 GMT NNTP-Posting-Host: 12.65.144.205 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1193475402 12.65.144.205 (Sat, 27 Oct 2007 08:56:42 GMT) NNTP-Posting-Date: Sat, 27 Oct 2007 08:56:42 GMT Organization: AT&T Worldnet Xref: g2news2.google.com comp.lang.ada:2603 Date: 2007-10-27T08:56:42+00:00 List-Id: -- -- Simple answer is to build a IO package and use Unchecked_Conversion -- with Ada.Real_Time ; with Ada.Text_IO ; -- -- -- use Ada.Real_Time ; use Ada.Text_IO ; with Ada.Unchecked_Conversion ; procedure z is -- -- I/O Time ( Duration ) type. -- package D_IO is new Ada.Text_IO.Fixed_IO ( Duration ) ; -- -- convert Ada.Real_Time private Time to a local type. -- function To_Duration is new Ada.Unchecked_Conversion ( Time, Duration ) ; Time_Value : Time ; begin Time_Value := Clock ; Put ( "Time := " ) ; D_IO.Put ( To_Duration ( Time_Value ) ) ; New_Line ; end z ; In <1193410739.367181.96050@50g2000hsm.googlegroups.com>, andrew writes: >Hello, > >Is there a put or put_line procedure to output the value of variables >declared as the Time type defined in the Real_Time package? >