source: git/Singular/mpsr_Timer.h @ 0e1846

spielwiese
Last change on this file since 0e1846 was 0e1846, checked in by Olaf Bachmann <obachman@…>, 27 years ago
This commit was generated by cvs2svn to compensate for changes in r59, which included commits to RCS files with non-trunk default branches. git-svn-id: file:///usr/local/Singular/svn/trunk@60 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 895 bytes
Line 
1/***************************************************************
2 *
3 * File:       mpsr_Timer.h
4 * Purpose:    declarations for a simple timer
5 * Author:     Olaf Bachmann (10/95)
6 *
7 * Change History (most recent first):
8 *
9 ***************************************************************/
10
11#ifndef __MPSR_TIMER__
12#define __MPSR_TIMER__
13
14#include <sys/times.h>
15
16#ifndef HZ
17#include <sys/param.h>
18#endif
19#if !defined(HZ) && defined(CLOCKS_PER_SEC)
20#define HZ CLOCKS_PER_SEC
21#endif
22#if !defined(HZ) && defined(CLK_TCK)
23#define HZ CLK_TCK
24#endif
25#ifndef HZ
26#ifdef sun
27#define HZ 60.0
28#else
29#define HZ 100.0
30#endif
31#endif
32
33typedef struct mpsr_Timer_t
34{
35  clock_t t_time;
36  clock_t s_time;
37  clock_t u_time;
38} mpsr_Timer_t, *mpsr_Timer_pt;
39
40
41extern void mpsr_StartTimer(mpsr_Timer_pt t);
42extern void mpsr_StopTimer(mpsr_Timer_pt t);
43extern void mpsr_PrintTimer(mpsr_Timer_pt t, char *str);
44
45
46#endif
Note: See TracBrowser for help on using the repository browser.