#include "Bdef.h"

#if (INTFACE == C_CALL)
double Cdwalltime00()
#else
double dwalltime00_()
#endif
{
#include <sys/time.h>
   struct timeval tp;
   if ( gettimeofday(&tp, NULL) )  /* info for wall clock time */
      BlacsWarn(-1, __LINE__, __FILE__, "gettimeofday not working");
   return( (double) (tp.tv_sec + tp.tv_usec/1000000.0) ); /* wall clock time */
}
