home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC-Online 1998 February
/
PCOnline_02_1998.iso
/
filesbbs
/
os2
/
pgp263.arj
/
PGP263I.SRC
/
PGP263II.ZIP
/
src
/
gettime.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-04-29
|
375b
|
19 lines
/*
* Gettimeofday. Simulate as much as possible. Only accurate
* to nearest second. tzp is ignored. Derived from an old
* emacs implementation.
*/
#include <sys/types.h>
#include <sys/time.h>
gettimeofday (tp, tzp)
struct timeval *tp;
struct timezone *tzp;
{
extern long time ();
tp->tv_sec = time ((long *)0);
tp->tv_usec = 0;
}