BeeCrypt
4.2.1
|
00001 /* 00002 * Copyright (c) 1999, 2000 X-Way Rights BV 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2.1 of the License, or (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with this library; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00017 * 00018 */ 00019 00020 #ifndef _TIMESTAMP_H 00021 #define _TIMESTAMP_H 00022 00023 #include "beecrypt/beecrypt.h" 00024 00025 #if HAVE_LONG_LONG && !defined(__cplusplus) /* C++ doesn't like LL constants */ 00026 # define ONE_SECOND 1000LL 00027 # define ONE_MINUTE 60000LL 00028 # define ONE_HOUR 3600000LL 00029 # define ONE_DAY 86400000LL 00030 # define ONE_WEEK 604800000LL 00031 # define ONE_YEAR 31536000000LL 00032 #else 00033 # define ONE_SECOND 1000L 00034 # define ONE_MINUTE 60000L 00035 # define ONE_HOUR 3600000L 00036 # define ONE_DAY 86400000L 00037 # define ONE_WEEK 604800000L 00038 # define ONE_YEAR 31536000000L 00039 #endif 00040 00041 #ifdef __cplusplus 00042 extern "C" { 00043 #endif 00044 00045 BEECRYPTAPI 00046 jlong timestamp(void); 00047 00048 #ifdef __cplusplus 00049 } 00050 #endif 00051 00052 #endif