|
tesseract
3.03
|
Go to the source code of this file.
Typedefs | |
| typedef struct timezone | tz |
Functions | |
| int | gettimeofday (struct timeval *tp, struct timezone *tzp) |
| typedef struct timezone tz |
Definition at line 27 of file gettimeofday.h.
| int gettimeofday | ( | struct timeval * | tp, |
| struct timezone * | tzp | ||
| ) |
Definition at line 23 of file gettimeofday.cpp.
{
l_int32 sec, usec;
if (tp == NULL)
return -1;
l_getCurrentTime(&sec, &usec);
tp->tv_sec = sec;
tp->tv_usec = usec;
return 0;
}