From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,815fc5d59c4c4384,start X-Google-Attributes: gidf8c9b,public X-Google-Thread: f678f,815fc5d59c4c4384,start X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,815fc5d59c4c4384,start X-Google-Attributes: gidfee84,public From: iglesias@draco.acs.uci.edu (Mike Iglesias) Subject: Re: Strange system time values through *getrusage* system call. Date: 1995/12/01 Message-ID: <49npfv$kv6@news.service.uci.edu>#1/1 X-Deja-AN: 120605512 references: <49ni24$ek0@tako.info.ucla.edu> organization: University of California, Irvine newsgroups: comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.questions In article <49ni24$ek0@tako.info.ucla.edu>, Pranab Banerjee 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