Revert "Revert "and added files""
[bcm963xx.git] / userapps / opensource / sshd / libtomcrypt / demos / timer.h
1 #ifndef __TIMER_H__
2 #define __TIMER_H__
3 /****************************************************************************
4 *
5 *   Copyright (c) 2000, Sony Computer Entertainment of America Inc.
6 *   All rights reserved
7 *   SCEA Confidential
8 *
9 *    Document: TIMER.H
10 *      Author: Ben Wiggins
11 *        Date: 7/15/2002   
12 *      Header: Timer stuff
13 *
14 ****************************************************************************/
15 /*============================================================================
16 =    INTERFACE REQUIRED HEADERS
17 ============================================================================*/
18 /*============================================================================
19 =    INTERFACE DEFINITIONS / ENUMERATIONS / SIMPLE TYPEDEFS
20 ============================================================================*/
21 /*============================================================================
22 =    INTERFACE STRUCTURES / UTILITY CLASSES
23 ============================================================================*/
24 /*============================================================================
25 =    INTERFACE DATA DECLARATIONS
26 ============================================================================*/
27 /*============================================================================
28 =    INTERFACE FUNCTION PROTOTYPES
29 ============================================================================*/
30 void TIMER_Init(void);
31 void TIMER_Shutdown(void);
32 double TIMER_GetTime(void);
33
34 #include <time.h>
35 #ifdef CLOCKS_PER_SEC
36 #undef CLOCKS_PER_SEC
37 #endif
38 #define CLOCKS_PER_SEC 576000
39 extern clock_t TIMER_clock(void);
40
41 /*============================================================================
42 =    INTERFACE TRAILING HEADERS
43 ============================================================================*/
44
45 /****************************************************************************
46 *
47 *    END HEADER TIMER.H
48 *
49 ****************************************************************************/
50 #endif // __TIMER_H__
51