/* ******************************************************************************* * Copyright (c) 1996 Martin Poole * ******************************************************************************* ** ** WARNING !! WARNING !! WARNING !! WARNING !! WARNING !! WARNING !! ** ** Any changes to be made to this file should first be checked with ** mplib1 source control for library integrity. ** ** mplib1 source control can be reached at mplib1@quatermass.co.uk ** * * * $Source: /home/cvs/cvsroot/onelan/onelan/src/mplib1/libsrc/time_1.c,v $ * $Author: mpoole $ * $Date: 2002/10/07 09:37:40 $ * $Revision: 1.2 $ * * ******************************************************************************* * * * $Log: time_1.c,v $ * Revision 1.2 2002/10/07 09:37:40 mpoole * Initial checkin of mplib1-3.1.0 * * Revision 1.1 2002/10/07 09:36:57 mpoole * Initial checkin of mplib1-3.1.0 * * ******************************************************************************* */ /* ------------------------------------------------------------------ Include files ------------------------------------------------------------------ */ #include #include #include #include #include #include #include #include #include #include #include #include /* ------------------------------------------------------------------ defines ------------------------------------------------------------------ */ /* ------------------------------------------------------------------ Code starts here ------------------------------------------------------------------ */ struct timeval * get_current_timeval( struct timeval *tvp ) { if (tvp) { #ifdef H_GETTIMEOFDAY_2_NULL gettimeofday( tvp, NULL ); #else #ifdef H_GETTIMEOFDAY_2_PARAMS struct timezone my_tz; my_tz.tz_minuteswest = 0; my_tz.tz_dsttime = 0; gettimeofday( tvp, &my_tz ); #else gettimeofday( tvp ); #endif #endif } return(tvp); } /* -- End of File -- */