fieker-DuValspielwiese
Last change
on this file since fdca1c0 was
6ae4f5,
checked in by Hans Schönemann <hannes@…>, 27 years ago
|
* hannes: - corrected scanner.l: parsing of strings in blocks:
if (1) { write("","}"); }
- corrected ipassign.cc: assignment of "dummy" types: DEF, NONE
- corrected sleftv::Print(_), initialisation of _
- added conversion int->def
- added CopyD(DEF)
- in insert(..): object should not be of type NONE (lists.cc:lInsert0)
- added int*intvec, int*intmat to iparith.cc
git-svn-id: file:///usr/local/Singular/svn/trunk@145 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /**************************************** |
---|
2 | * Computer Algebra System SINGULAR * |
---|
3 | ****************************************/ |
---|
4 | /* $Id: mpsr_Timer.h,v 1.2 1997-04-09 12:20:04 Singular Exp $ */ |
---|
5 | |
---|
6 | /*************************************************************** |
---|
7 | * |
---|
8 | * File: mpsr_Timer.h |
---|
9 | * Purpose: declarations for a simple timer |
---|
10 | * Author: Olaf Bachmann (10/95) |
---|
11 | * |
---|
12 | * Change History (most recent first): |
---|
13 | * |
---|
14 | ***************************************************************/ |
---|
15 | |
---|
16 | #ifndef __MPSR_TIMER__ |
---|
17 | #define __MPSR_TIMER__ |
---|
18 | |
---|
19 | #include <sys/times.h> |
---|
20 | |
---|
21 | #ifndef HZ |
---|
22 | #include <sys/param.h> |
---|
23 | #endif |
---|
24 | #if !defined(HZ) && defined(CLOCKS_PER_SEC) |
---|
25 | #define HZ CLOCKS_PER_SEC |
---|
26 | #endif |
---|
27 | #if !defined(HZ) && defined(CLK_TCK) |
---|
28 | #define HZ CLK_TCK |
---|
29 | #endif |
---|
30 | #ifndef HZ |
---|
31 | #ifdef sun |
---|
32 | #define HZ 60.0 |
---|
33 | #else |
---|
34 | #define HZ 100.0 |
---|
35 | #endif |
---|
36 | #endif |
---|
37 | |
---|
38 | typedef struct mpsr_Timer_t |
---|
39 | { |
---|
40 | clock_t t_time; |
---|
41 | clock_t s_time; |
---|
42 | clock_t u_time; |
---|
43 | } mpsr_Timer_t, *mpsr_Timer_pt; |
---|
44 | |
---|
45 | |
---|
46 | extern void mpsr_StartTimer(mpsr_Timer_pt t); |
---|
47 | extern void mpsr_StopTimer(mpsr_Timer_pt t); |
---|
48 | extern void mpsr_PrintTimer(mpsr_Timer_pt t, char *str); |
---|
49 | |
---|
50 | |
---|
51 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.