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.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no 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:00:21 PST Path: supernews.google.com!sn-xit-02!supernews.com!sienna.impulse.net!news.netcologne.de!news.tele.dk!194.213.69.151!news.algonet.se!algonet!newspeer.monmouth.com!cpk-news-hub1.bbnplanet.com!news.gtei.net!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Ted Dennison Newsgroups: comp.lang.ada Subject: Re: User and system time Date: Thu, 02 Nov 2000 15:50:57 GMT Organization: Deja.com - Before you buy. Message-ID: <8ts2gs$7va$1@nnrp1.deja.com> References: <78900ts12pf4fld1rnmm1icng8e8gk9ikv@4ax.com> <8tphmj$52q$1@nnrp1.deja.com> <0h820tgk1aln43cab8u0pcfgvgknqgeblo@4ax.com> NNTP-Posting-Host: 204.48.27.130 X-Article-Creation-Date: Thu Nov 02 15:50:57 2000 GMT X-Http-User-Agent: Mozilla/4.7 [en] (WinNT; I) X-Http-Proxy: 1.0 x63.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 X-MyDeja-Info: XMYDJUIDtedennison Xref: supernews.google.com comp.lang.ada:1722 Date: 2000-11-02T15:50:57+00:00 List-Id: 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. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/ Before you buy.