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