]> www.ginac.de Git - ginac.git/blob - check/times.h
finalized 1.0.13
[ginac.git] / check / times.h
1 /** @file times.h
2  *
3  *  Prototypes for all individual timings. */
4
5 /*
6  *  GiNaC Copyright (C) 1999-2003 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 <cstdlib>
28 #include <iostream>
29 #include <sstream>
30 #include <vector>
31 #include "config.h"
32 #include "ginac.h"
33 using namespace std;
34 using 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_IJKL();
63 unsigned time_lw_M1();
64 unsigned time_lw_M2();
65 unsigned time_lw_N();
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 unsigned time_antipode();
72 unsigned time_fateman_expand();
73
74 #endif // ndef CHECKS_H