]> www.ginac.de Git - ginac.git/blob - check/times.h
24cfc77670af633fc96253978197cc3153e68fc3
[ginac.git] / check / times.h
1 /** @file times.h
2  *
3  *  Prototypes for all individual timings. */
4
5 /*
6  *  GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21  */
22
23 #ifndef CHECKS_H
24 #define CHECKS_H
25
26 #include <sys/resource.h>
27 #include <stdlib.h>
28 #include <vector>
29
30 #include "ginac.h"
31
32 #ifndef NO_NAMESPACE_GINAC
33 using namespace GiNaC;
34 #endif // ndef NO_NAMESPACE_GINAC
35
36 class timer {
37 public:
38     timer();
39     void start(void);
40     void stop(void);
41     void reset(void);
42     double read(void);
43     bool running(void);
44 private:
45     bool on;
46     struct rusage used1, used2;
47 };
48
49 // prototypes for all individual timings should be unsigned fcn():
50 unsigned time_dennyfliegner();
51 unsigned time_gammaseries();
52 unsigned time_vandermonde();
53 unsigned time_toeplitz();
54 unsigned time_lw_A();
55 unsigned time_lw_B();
56 unsigned time_lw_C();
57 unsigned time_lw_D();
58 unsigned time_lw_E();
59 unsigned time_lw_F();
60 unsigned time_lw_G();
61 unsigned time_lw_H();
62 unsigned time_lw_M1();
63 unsigned time_lw_O();
64 unsigned time_lw_P();
65 unsigned time_lw_Pprime();
66
67 #endif // ndef CHECKS_H