new
[libcurl.git] / lib / timeval.h
blobdb8f15cae3c4c8c886bd0554687df2ccb1702f62
1 #ifndef __TIMEVAL_H
2 #define __TIMEVAL_H
3 /*****************************************************************************
4 * _ _ ____ _
5 * Project ___| | | | _ \| |
6 * / __| | | | |_) | |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
10 * The contents of this file are subject to the Mozilla Public License
11 * Version 1.0 (the "License"); you may not use this file except in
12 * compliance with the License. You may obtain a copy of the License at
13 * http://www.mozilla.org/MPL/
15 * Software distributed under the License is distributed on an "AS IS"
16 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
17 * License for the specific language governing rights and limitations
18 * under the License.
20 * The Original Code is Curl.
22 * The Initial Developer of the Original Code is Daniel Stenberg.
24 * Portions created by the Initial Developer are Copyright (C) 1998.
25 * All Rights Reserved.
27 * ------------------------------------------------------------
28 * Main author:
29 * - Daniel Stenberg <Daniel.Stenberg@haxx.nu>
31 * http://curl.haxx.nu
33 * $Source: /cvsroot/curl/curl/lib/timeval.h,v $
34 * $Revision: 1.1.1.1 $
35 * $Date: 1999-12-29 14:21:39 $
36 * $Author: bagder $
37 * $State: Exp $
38 * $Locker: $
40 * ------------------------------------------------------------
41 ****************************************************************************/
43 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
44 #include <time.h>
45 #else
46 #include <sys/time.h>
47 #endif
49 #include "setup.h"
51 #ifndef HAVE_GETTIMEOFDAY
52 #if !defined(_WINSOCKAPI_) && !defined(__MINGW32__)
53 struct timeval {
54 long tv_sec;
55 long tv_usec;
57 #endif
58 #endif
60 struct timeval tvnow ();
61 double tvdiff (struct timeval t1, struct timeval t2);
62 long tvlong (struct timeval t1);
64 #endif