Logo Search packages:      
Sourcecode: safecat version File versions

taia_now.c

#include <sys/types.h>
#include <sys/time.h>
#include "taia.h"

/* XXX: breaks tai encapsulation */

void taia_now(t)
struct taia *t;
{
  struct timeval now;
  gettimeofday(&now,(struct timezone *) 0);
  t->sec.x = 4611686018427387914ULL + (uint64) now.tv_sec;
  t->nano = 1000 * now.tv_usec + 500;
  t->atto = 0;
}

Generated by  Doxygen 1.6.0   Back to index