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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,849b184f06ebcc33 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-11-02 08:31:29 PST Path: supernews.google.com!sn-xit-02!supernews.com!isdnet!newsgate.cistron.nl!news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!newsfeed.bahnhof.se!nntp.se.dataphone.net!news.powertech.no!nntp.newmedia.no!newsfeed1.enitel.no!news.telia.no!not-for-mail Sender: ohk@gong10.clustra.com Newsgroups: comp.lang.ada Subject: Re: User and system time References: <78900ts12pf4fld1rnmm1icng8e8gk9ikv@4ax.com> <8tphmj$52q$1@nnrp1.deja.com> <0h820tgk1aln43cab8u0pcfgvgknqgeblo@4ax.com> <8ts2gs$7va$1@nnrp1.deja.com> From: Ole-Hjalmar Kristensen Message-ID: X-Newsreader: Gnus v5.5/Emacs 20.3 Date: Thu, 02 Nov 2000 16:31:26 GMT NNTP-Posting-Host: 195.204.160.194 X-Complaints-To: abuse@enitel.no X-Trace: news.telia.no 973182686 195.204.160.194 (Thu, 02 Nov 2000 17:31:26 CET) NNTP-Posting-Date: Thu, 02 Nov 2000 17:31:26 CET Organization: Enitel Internet Public Access Xref: supernews.google.com comp.lang.ada:1724 Date: 2000-11-02T16:31:26+00:00 List-Id: Ted Dennison writes: > In article <0h820tgk1aln43cab8u0pcfgvgknqgeblo@4ax.com>, > Espen Stranger Seland wrote: > > (I believe Robert Dewar wrote this part) > > >This is not a language question, but rather an operating > > >system question, you need to consult your OS documentation > > >and call the appropriate routines. > > > Ok. In Watcom/QNX there is functions to get these stats from > > daughter-processes/threads. Just thought there could be > > something like inside ada95. > > Not quite. QNX (an OS) has calls to get those stats. It has nothing to > do with Watcom except that they perhaps chose to write some bindings (C > header files) to that facility for you. An Ada QNX vendor could do the > exact same thing with Ada specification files. So could any other > language vendor whose language is capable of linking in OS facilites. If > they (Watcom or your QNX Ada vendor) didn't bother, you could even do it > yourself if you could find out what the linkage and parameter profile > are. > > "Fine", you say, "But I still want to use this facility in Ada and > you haven't answerd that part of my question." Well, lets try a bit > harder then... > > Ada (like C) does not have such a facility natively, probably because it > isn't universally available. (How would I do it on DOS, where there are > no processes or threads?) So if you want to gather that information in > Ada (or in C or in Fortran or in Java or in Cobol or in...) you have to > do the following: > > o Find out what facility your OS provides for it. > o Find out what bindings your compiler provides to that facility. > o If the answer to the above is none, see if any third parties > provide said bindings. > o If the answer to the above is still none (or there are cost or > licensing issues), find the specifications of the OS calls, and > roll your own bindings. > > The only difference with C is that there will almost certianly be at > least one C compiler on any OS that meets the second bullet. But these > days its actually a pretty rare Ada compiler that comes with no OS > bidings either. > > -- > T.E.D. Not "no OS binding" does not imply a complete OS binding, though. > > http://www.telepath.com/~dennison/Ted/TED.html > > > Sent via Deja.com http://www.deja.com/ > Before you buy. -- Kabelsalat ist gesund. Ole-Hj. Kristensen