diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-22 03:00:08 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-22 03:00:08 +0000 |
commit | d7fba4ec70714ccdf7fb29ce85584a71898b7626 (patch) | |
tree | 94d56571cfade12aedab53a01e77d3498f6de7f4 /apps/JAWS/clients/WebSTONE/src/gettimeofday.c | |
parent | 89479b1202f3656b2eab09efe64b1e9e8fd4ced9 (diff) | |
download | ATCD-TAO-0_1_23.tar.gz |
This commit was manufactured by cvs2svn to create tag 'TAO-0_1_23'.TAO-0_1_23
Diffstat (limited to 'apps/JAWS/clients/WebSTONE/src/gettimeofday.c')
-rw-r--r-- | apps/JAWS/clients/WebSTONE/src/gettimeofday.c | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/apps/JAWS/clients/WebSTONE/src/gettimeofday.c b/apps/JAWS/clients/WebSTONE/src/gettimeofday.c deleted file mode 100644 index 7d5614b8189..00000000000 --- a/apps/JAWS/clients/WebSTONE/src/gettimeofday.c +++ /dev/null @@ -1,56 +0,0 @@ - -/* - * This file defines functions that are required for unix compatibility. - * - * These functions are not available in the Microsoft C/C++ Run Time - * and the Win32 API. - * - * The following functions list may not be complete - * - * FUNCTIONS: - * SHARED _gettimeofday - * - */ - - -#include <windows.h> -#include <errno.h> -#include <winsock.h> /* For definition of "timeval" structure */ -#include <sys/timeb.h> /* For prototype of "_ftime()" */ - - -/* - * gettimeofday() -- gets the current time in elapsed seconds and - * microsends since GMT Jan 1, 1970. - * - * ARGUMENTS: - Pointer to a timeval struct to return the time into - * - * RETURN CODES: - 0 on success - * -1 on failure - */ -int gettimeofday(curTimeP) - struct timeval *curTimeP; -{ -struct _timeb localTime; - - if (curTimeP == (struct timeval *) NULL) { - errno = EFAULT; - return (-1); - } - - /* - * Compute the elapsed time since Jan 1, 1970 by first - * obtaining the elapsed time from the system using the - * _ftime(..) call and then convert to the "timeval" - * equivalent. - */ - - _ftime(&localTime); - - curTimeP->tv_sec = localTime.time + localTime.timezone; - curTimeP->tv_usec = localTime.millitm * 1000; - - return(0); -} - - |