From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b1405ae95ca8c2c2,start X-Google-Attributes: gid1164f8,public From: sarkar@ponder.csci.unt.edu (Falguni Sarkar) Subject: Help in measuring time Date: 1995/06/21 Message-ID: <3s88s2$80b@hermes.acs.unt.edu>#1/1 X-Deja-AN: 104726232 distribution: inet organization: University of North Texas keywords: ALPHA,CC,GCC, time newsgroups: comp.sys.dec I am using a DEC Alpha machine. When I try to compile the following code I am facing problems. #include #include time_t tim1,*tp; main(){ tim1=time(tp); if(tp==NULL) printf("tp is NULL\n"); } If I use cc then tp is always returned as NULL. If I use gcc for compilation, no executable file gets created and the following message is displayed. In file included from /usr/include/sys/timers.h:99, from /usr/local/lib/gcc-lib/alpha-dec-osf3.2/2.6.3/include/time.h:174, from sample.c:2: /usr/local/lib/gcc-lib/alpha-dec-osf3.2/2.6.3/include/sys/signal.h:225: field `sigev_value' has incomplete type I need to evalute the physical time between two successive points in one of my experimental program. Hence I am using the function time(), which is returning me always NULL values or the programs do not compile. I will highly appreciate any suggestion about how to fix this. Thanks in advance, Falguni Sarkar. E-mail : sarkar@ponder.csci.unt.edu -- Falguni Sarkar Dept. of Computer Science University of North Texas Denton, TX 76203