root/branches/libfreebob-2.0/src/libstreaming/streamstatistics.h

Revision 244, 0.6 kB (checked in by pieterpalmers, 18 years ago)

- first try to implement the SYT synchronisation.

Not working yet.

- committing to spend some time to get the Motu people going.

Line 
1 //
2 // C++ Interface: streamstatistics
3 //
4 // Description:
5 //
6 //
7 // Author: Pieter Palmers, (C) 2006
8 //
9 // Copyright: See COPYING file that comes with this distribution
10 //
11 //
12 #ifndef FREEBOBSTREAMINGSTREAMSTATISTICS_H
13 #define FREEBOBSTREAMINGSTREAMSTATISTICS_H
14
15 #include <string>
16
17 namespace FreebobStreaming {
18
19 class StreamStatistics {
20 public:
21     StreamStatistics();
22
23     ~StreamStatistics();
24
25     void setName(std::string n) {m_name=n;};
26    
27     void mark(int value);
28    
29     void dumpInfo();
30     void reset();
31
32     std::string m_name;
33    
34     long m_count;
35     float m_average;
36     long m_min;
37     long m_max;
38     long m_sum;
39    
40 private:
41    
42 };
43
44 }
45
46 #endif
Note: See TracBrowser for help on using the browser.