Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: sarkar@ponder.csci.unt.edu (Falguni Sarkar)
Subject: Help in measuring time
Date: 1995/06/21	[thread overview]
Message-ID: <3s88s2$80b@hermes.acs.unt.edu> (raw)


I am using a DEC Alpha machine. When I try to compile the
following code I am facing problems. 

#include <stdio.h>
#include <time.h>

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



             reply	other threads:[~1995-06-21  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-06-21  4:00 Falguni Sarkar [this message]
1995-06-21  4:00 ` Help in measuring time Sam Pawley
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