]> www.ginac.de Git - ginac.git/blob - check/times.h
documentation update
[ginac.git] / check / times.h
1 /** @file times.h
2  *
3  *  Prototypes for all individual timings. */
4
5 /*
6  *  GiNaC Copyright (C) 1999-2001 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 <strstream>
29 #include <vector>
30 using namespace std;
31
32 #include "ginac.h"
33
34 #ifndef NO_NAMESPACE_GINAC
35 using namespace GiNaC;
36 #endif // ndef NO_NAMESPACE_GINAC
37
38 class timer {
39 public:
40         timer();
41         void start(void);
42         void stop(void);
43         void reset(void);
44         double read(void);
45         bool running(void);
46 private:
47         bool on;
48         struct rusage used1, used2;
49 };
50
51 // prototypes for all individual timings should be unsigned fcn():
52 unsigned time_dennyfliegner();
53 unsigned time_gammaseries();
54 unsigned time_vandermonde();
55 unsigned time_toeplitz();
56 unsigned time_lw_A();
57 unsigned time_lw_B();
58 unsigned time_lw_C();
59 unsigned time_lw_D();
60 unsigned time_lw_E();
61 unsigned time_lw_F();
62 unsigned time_lw_G();
63 unsigned time_lw_H();
64 unsigned time_lw_IJKL();
65 unsigned time_lw_M1();
66 unsigned time_lw_O();
67 unsigned time_lw_P();
68 unsigned time_lw_Pprime();
69 unsigned time_lw_Q();
70 unsigned time_lw_Qprime();
71
72 #endif // ndef CHECKS_H