Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: iglesias@draco.acs.uci.edu (Mike Iglesias)
Subject: Re: Strange system time values through *getrusage* system call.
Date: 1995/12/01	[thread overview]
Message-ID: <49npfv$kv6@news.service.uci.edu> (raw)
In-Reply-To: 49ni24$ek0@tako.info.ucla.edu

In article <49ni24$ek0@tako.info.ucla.edu>,
Pranab Banerjee <pbanerje@anima.ucla.edu> wrote:
>Can anyone explain the following results that I am getting from "getrusage" 
>system function call on a DEC Alphastation running OSF1 V3.2.
> [snip]
> long sys_time_1, sys_time_2 ;
> [snip]
>  sys_time_1 = r_usage->ru_stime.tv_usec ;

tv_usec is an int on an Alpha, not a long.  Your code would probably work
ok on a Sun, but you should change sys_time_1 and sys_time_2 to be int on
the Alpha.


-- 
Mike Iglesias                        Internet:    iglesias@draco.acs.uci.edu
University of California, Irvine     phone:       (714) 824-6926
Office of Academic Computing         FAX:         (714) 824-2069




      reply	other threads:[~1995-12-01  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-12-01  5:00 Strange system time values through *getrusage* system call Pranab Banerjee
1995-12-01  5:00 ` Mike Iglesias [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox