Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

int gettimeofday ( struct timeval *  tv,
void *  tz 
)

Gets the current time of day.

Parameters:
tv A pointer to struct timeval, where the time is written.
tz Unused.
Returns:
On success, gettimeofday returns zero. On failure, it returns -1 and sets errno appropriately.

Definition at line 17 of file gettimeofday.c.

References gettimeofday().

Referenced by av_gettime(), gettimeofday(), and SkEvent::SignalQueueTimer().

                                               {
  int retval = NACL_SYSCALL(gettimeofday)(tv, tz);
  if (retval < 0) {
    errno = -retval;
    return -1;
  }
  return 0;
}


Generated by  Doxygen 1.6.0   Back to index