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.6 required=5.0 tests=BAYES_00,FROM_WORDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,88aaef9110656b58 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-12 14:24:21 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!194.213.69.151!news.algonet.se!algonet!newsfeed.rt.ru!news-stob.telia.net!news-sto.telia.net!194.22.194.4.MISMATCH!masternews.telia.net.!newsc.telia.net.POSTED!not-for-mail From: "Sune Falck" Newsgroups: comp.lang.ada References: <17cd177c.0110120321.3077bccf@posting.google.com> <7eDx7.26122$ev2.34594@www.newsranger.com> Subject: Re: CPU time for Win32 & GNAT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Fri, 12 Oct 2001 18:30:51 GMT NNTP-Posting-Host: 217.208.70.34 X-Complaints-To: abuse@telia.com X-Trace: newsc.telia.net 1002911451 217.208.70.34 (Fri, 12 Oct 2001 20:30:51 CEST) NNTP-Posting-Date: Fri, 12 Oct 2001 20:30:51 CEST Organization: Telia Internet Xref: archiver1.google.com comp.lang.ada:14438 Date: 2001-10-12T18:30:51+00:00 List-Id: If you want to fetch elapsed time, cpu time in user mode and cpu time in kernel mode have a look at the system call GetProcessTimes. A sample: ... Created : aliased Win32.Winbase.FILETIME; Exited : aliased Win32.Winbase.FILETIME; User : aliased Win32.Winbase.FILETIME; Kernel : aliased Win32.Winbase.FILETIME; Ok : Win32.BOOL; begin Ok := Win32.Winbase.GetProcessTimes (Win32.Winbase.GetCurrentProcess, Created'Unchecked_Access, Exited'Unchecked_Access, User'Unchecked_Access, Kernel'Unchecked_Access); ... Sune Falck