source: git/Singular/mpsr_Timer.h @ b2aa08

spielwiese
Last change on this file since b2aa08 was 6ce030f, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
removal of the $Id$ svn tag from everywhere NOTE: the git SHA1 may be used instead (only on special places) NOTE: the libraries Singular/LIB/*.lib still contain the marker due to our current use of svn
  • Property mode set to 100644
File size: 1022 bytes
Line 
1/****************************************
2*  Computer Algebra System SINGULAR     *
3****************************************/
4
5/***************************************************************
6 *
7 * File:       mpsr_Timer.h
8 * Purpose:    declarations for a simple timer
9 * Author:     Olaf Bachmann (10/95)
10 *
11 * Change History (most recent first):
12 *
13 ***************************************************************/
14
15#ifndef __MPSR_TIMER__
16#define __MPSR_TIMER__
17
18#include <sys/times.h>
19
20#ifndef HZ
21#include <sys/param.h>
22#endif
23#if !defined(HZ) && defined(CLOCKS_PER_SEC)
24#define HZ CLOCKS_PER_SEC
25#endif
26#if !defined(HZ) && defined(CLK_TCK)
27#define HZ CLK_TCK
28#endif
29#ifndef HZ
30#ifdef sun
31#define HZ 60.0
32#else
33#define HZ 100.0
34#endif
35#endif
36
37typedef struct mpsr_Timer_t
38{
39  clock_t t_time;
40  clock_t s_time;
41  clock_t u_time;
42} mpsr_Timer_t, *mpsr_Timer_pt;
43
44
45extern void mpsr_StartTimer(mpsr_Timer_pt t);
46extern void mpsr_StopTimer(mpsr_Timer_pt t);
47extern void mpsr_PrintTimer(mpsr_Timer_pt t, char *str);
48
49
50#endif
Note: See TracBrowser for help on using the repository browser.