🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3570

timing a program...help

#3570
From: Abed M. Hammoud
Date: Thu, 23 Dec 1993 22:12
19 lines
1629 bytes
Hello,  I would like to execute a command (from within my program) so
as to print a message telling the user how many cpu seconds etc..his
program took to run. i.e I need something like the 

time command on unix but one that I can call as a function from
my program.

I am using g++, on a sunsparc station. Please send E-mail and I will
post a summary if there was enough interest.

Thanks, 
+-------------------------------------------------+-----------------------+
|Abed M. Hammoud (KB0INX)			  | abed@saturn.wustl.edu |
|Washington University.				  | Office:               |
|Electronic Systems & Signals Research Laboratory.| coi:(314) 935-7547 |
|Department of Electrical/Biomedical Engineering. | -FAX:  (314) 935-4842 |
|Campus Box 1161, One Brookings Drive.		  |			  |
|St. Louis, MO , 63130 USA			  |                       |
+-------------------------------------------------+-----------------------+
Technical Details
Message-ID: <2fd53o$cf7@wuecl.wustl.edu>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!uwm.edu!wupost!wuecl.wustl.edu!saturn!abed

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc89c,d31ea38bb1989c99,start
X-Google-Attributes: gidfc89c,public
X-Google-Thread: 10ba33,d31ea38bb1989c99,start
X-Google-Attributes: gid10ba33,public
X-Google-ArrivalTime: 1993-12-23 14:19:22 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!uwm.edu!wupost!wuecl.wustl.edu!saturn!abed
From: abed@saturn.wustl.edu (Abed M. Hammoud)
Newsgroups: comp.unix.programmer,gnu.g++.help
Subject: timing a program...help
Date: 23 Dec 1993 22:12:08 GMT
Organization: Washington University, ESSRL
Lines: 21
Message-ID: <2fd53o$cf7@wuecl.wustl.edu>
Reply-To: abed@saturn.wustl.edu
NNTP-Posting-Host: saturn.wustl.edu