File: watch.h

package info (click to toggle)
libm4ri 0.0.20080521-2
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 2,296 kB
  • ctags: 368
  • sloc: sh: 8,865; ansic: 4,045; python: 31; makefile: 29
file content (54 lines) | stat: -rw-r--r-- 1,234 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef WATCH_H
#define WATCH_H

/******************************************************************************
*
*            M4RI: Method of the Four Russians Inversion
*
*       Copyright (C) 2007 Gregory Bard <gregory.bard@ieee.org> 
*
*  Distributed under the terms of the GNU General Public License (GPL)
*
*    This code is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
*    General Public License for more details.
*
*  The full text of the GPL is available at:
*
*                  http://www.gnu.org/licenses/
******************************************************************************/

#include <time.h>
#include <math.h>

extern clock_t watchstart;
extern clock_t watchstop;
extern long watchrunning;

extern double logtotal, logtotalsquare, logcount;

void m4ri_watch_seed();

double m4ri_sqrt(double n);

void m4ri_watch_start();

void m4ri_watch_stop();

clock_t m4ri_watch_get();

void m4ri_watch_clear_logs();

void m4ri_watch_store(clock_t watch);

double m4ri_watch_get_average_time();

double m4ri_watch_get_sigma();

long m4ri_watch_get_count();

#endif //WATCH_H