Logo Search packages:      
Sourcecode: hammerhead version File versions  Download package

hrtime.cc

#include <stdlib.h>
#include <sys/time.h>
#include "hrtime.h"


#ifndef SunOS

hrtime_t gethrtime(void)
{
      //hrtime_t result;

      timeval t;

      gettimeofday(&t, NULL);

      return (hrtime_t)(t.tv_sec * 1e9 + t.tv_usec * 1e3);


}

#endif

Generated by  Doxygen 1.6.0   Back to index