delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/11/26/08:47:07

From: Alex Vinokur <alexvn AT bigfoot DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Getting system time used
Date: Mon, 26 Nov 2001 15:38:01 +0200
Organization: Scopus Network Technologies
Lines: 25
Message-ID: <3C0245B8.F5B2EBD4@bigfoot.com>
NNTP-Posting-Host: 62.90.123.5
Mime-Version: 1.0
X-Trace: fu-berlin.de 1006781899 5073189 62.90.123.5 (16 [79865])
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

http://www.delorie.com/djgpp/doc/libc-2.02/libc_367.html
The only field of  struct rusage is computed is DJGPP :
   struct timeval ru_utime;  /* total time used by process */

How can we get total _system_ time used?



For instance, in UNIX
http://www.mcsr.olemiss.edu/cgi-bin/man-cgi?getrusage+3
struct rusage contains the fields
   struct timeval ru_utime;/* user time used */
   struct timeval ru_stime;/* system time used */
and a lot of other fields.

  ===========================
  Alex Vinokur
    mailto:alexvn AT bigfoot DOT com
    mailto:alexvn AT dr DOT com
    http://up.to/alexvn
    http://go.to/alexv_math
  ===========================


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019