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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e7ac0b21c6d808e6 X-Google-Attributes: gid103376,public From: bf14@prism.gatech.edu (Brian Franklin) Subject: Re: Timing of ADA code Date: 1998/07/31 Message-ID: <35c23701.67387591@news.gatech.edu>#1/1 X-Deja-AN: 376794961 References: <35c12689.217545056@news.gatech.edu> <6psg15$a56$1@nnrp1.dejanews.com> <35c1cf02.40761361@news.gatech.edu> <6pssib$r9c$1@nnrp1.dejanews.com> Organization: Georgia Institute of Technology, Atlanta GA, USA Newsgroups: comp.lang.ada Date: 1998-07-31T00:00:00+00:00 List-Id: On Fri, 31 Jul 1998 16:49:15 GMT, dennison@telepath.com wrote: >In article <35c1cf02.40761361@news.gatech.edu>, > bf14@prism.gatech.edu (Brian Franklin) wrote: >> On Fri, 31 Jul 1998 13:15:17 GMT, dennison@telepath.com wrote: >> >> >In article <35c12689.217545056@news.gatech.edu>, >> > bf14@prism.gatech.edu (Brian Franklin) wrote: >> >> I want to measure the execution time of portions of my ADA code. What >> >> code do I need to add the my code to do this? >> >> >> >> I'm using GNAT on a PC. >> >> >> > >> >What OS? >> Windows 95 >> > >> >CPU time or wall time? >> CPU >> (What's wall time?) >The actual time elapsed (including time spent doing nothing while another >process or task is executing). iaw: The time elapsed as reported by the clock >on the wall. > >Ada gives you a standard way to get "wall" time, but you will have to make OS >calls to get CPU time. That turns your question into: > OK, In that case "wall" time will do. My PC has a dedicated processor and hopefully any other tasks it chooses to do (if done) will not affect the result. I guess basically I just need the time when the process starts and the time when it finishes.