BeeCrypt  4.2.1
timestamp.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 1999, 2000 X-Way Rights BV
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  */
19 
20 #ifndef _TIMESTAMP_H
21 #define _TIMESTAMP_H
22 
23 #include "beecrypt/beecrypt.h"
24 
25 #if HAVE_LONG_LONG && !defined(__cplusplus) /* C++ doesn't like LL constants */
26 # define ONE_SECOND 1000LL
27 # define ONE_MINUTE 60000LL
28 # define ONE_HOUR 3600000LL
29 # define ONE_DAY 86400000LL
30 # define ONE_WEEK 604800000LL
31 # define ONE_YEAR 31536000000LL
32 #else
33 # define ONE_SECOND 1000L
34 # define ONE_MINUTE 60000L
35 # define ONE_HOUR 3600000L
36 # define ONE_DAY 86400000L
37 # define ONE_WEEK 604800000L
38 # define ONE_YEAR 31536000000L
39 #endif
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
46 jlong timestamp(void);
47 
48 #ifdef __cplusplus
49 }
50 #endif
51 
52 #endif
int64_t jlong
Definition: api.h:80
BeeCrypt API, headers.
#define BEECRYPTAPI
Definition: api.h:52
jlong timestamp(void)