🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #12250

Re: CPU Time

#12250
From: Deven Corzine
Date: Sun, 16 Apr 1989 08:42
20 lines
1650 bytes
In article <94@snll-arpagw.UUCP> paolucci@snll-arpagw.UUCP (Sam Paolucci) writes:
>I'm writing a code which needs to know how much execution time it's using
>up.  Can anybody tell me how to get this information or written a routine
>to do this?  Note, that the time that the code is swapped out does not
>count in the execution time.  The execution time or CPU time is the total
>time the code has access to the CPU.  Also note that the code itself has
>to be able to determine this information.

I need the same thing.  I also want to be able to split it between
"user" time and "system" time.  Is there, say, a vblank (or whatever)
updated clock which I could just check against and measure the
difference?  (at task switch and user/system switch...)  Need I add
such?

Deven
--
------- shadow@pawl.rpi.edu ------- Deven Thomas Corzine ---------------------
Cogito  shadow@acm.rpi.edu          2346 15th Street            Pi-Rho America
ergo    userfxb6@rpitsmts.bitnet    Troy, NY 12180-2306         (518) 272-5847
sum...     In the immortal words of Socrates:  "I drank what?"     ...I think.
Technical Details
Message-ID: <DEVEN.89Apr16044258@daniel.pawl.rpi.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!ig!bionet!csd4.milw.wisc.edu!leah!rpi!rpi.edu!deven
References: <94@snll-arpagw.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!ig!bionet!csd4.milw.wisc.edu!leah!rpi!rpi.edu!deven
From: deven@pawl.rpi.edu (Deven Corzine)
Newsgroups: comp.sys.amiga.tech
Subject: Re: CPU Time
Message-ID: <DEVEN.89Apr16044258@daniel.pawl.rpi.edu>
Date: 16 Apr 89 08:42:58 GMT
References: <94@snll-arpagw.UUCP>
Sender: usenet@rpi.edu
Reply-To: shadow@pawl.rpi.edu (Deven T. Corzine)
Organization: RPI Public Access Workstation Lab, Troy NY
Lines: 20
In-reply-to: paolucci@snll-arpagw.UUCP's message of 13 Apr 89 14:58:28 GMT