Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

timestamp.h

Go to the documentation of this file.
00001 /*
00002  * timestamp.h
00003  *
00004  * Java-compatible 64 bit timestamp, header
00005  *
00006  * Copyright (c) 1999, 2000 Virtual Unlimited B.V.
00007  *
00008  * Author: Bob Deblier <bob@virtualunlimited.com>
00009  *
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Lesser General Public
00012  * License as published by the Free Software Foundation; either
00013  * version 2.1 of the License, or (at your option) any later version.
00014  *
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Lesser General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU Lesser General Public
00021  * License along with this library; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00023  *
00024  */
00025 
00026 #ifndef _TIMESTAMP_H
00027 #define _TIMESTAMP_H
00028 
00029 #include "beecrypt.h"
00030 
00031 #if HAVE_LONG_LONG
00032 # define ONE_SECOND 1000LL
00033 # define ONE_MINUTE 60000LL
00034 # define ONE_HOUR   3600000LL
00035 # define ONE_DAY    86400000LL
00036 # define ONE_WEEK   604800000LL
00037 # define ONE_YEAR   31536000000LL
00038 #else
00039 # define ONE_SECOND 1000L
00040 # define ONE_MINUTE 60000L
00041 # define ONE_HOUR   3600000L
00042 # define ONE_DAY    86400000L
00043 # define ONE_WEEK   604800000L
00044 # define ONE_YEAR   31536000000L
00045 #endif
00046 
00047 #ifdef __cplusplus
00048 extern "C" {
00049 #endif
00050 
00051 BEECRYPTAPI
00052 javalong timestamp(void);
00053 
00054 #ifdef __cplusplus
00055 }
00056 #endif
00057 
00058 #endif

Generated on Wed Mar 24 13:56:53 2004 for BeeCrypt by doxygen 1.3.6