1 /******************************************************************************
2 * Copyright (c) 2004, 2008 IBM Corporation
4 * This program and the accompanying materials
5 * are made available under the terms of the BSD License
6 * which accompanies this distribution, and is available at
7 * http://www.opensource.org/licenses/bsd-license.php
10 * IBM Corporation - initial implementation
11 *****************************************************************************/
17 typedef unsigned long clock_t;
18 typedef unsigned long time_t;
20 time_t time(time_t *);
22 extern unsigned long tb_freq;
24 /* setup the timer to start counting from the given parameter */
26 /* read the current value from the decrementer */
28 /* get the number of ticks for which the decrementer needs 1 second */
29 int get_sec_ticks(void);
30 /* get the number of ticks for which the decrementer needs 1 millisecond */
31 int get_msec_ticks(void);
33 #define TICKS_MSEC get_msec_ticks()
34 #define TICKS_SEC get_sec_ticks()