summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-21 02:46:17 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-21 02:46:17 +0000
commitad622eea4e042eda58a8f26cd9301c35893292d2 (patch)
tree88adc0602cd7238497ed4d8c7d629e1c1d4d828f /ace
parent140d6e321a720cc4c4eb864137e8ee2ff87c0dee (diff)
downloadATCD-ad622eea4e042eda58a8f26cd9301c35893292d2.tar.gz
added example usage
Diffstat (limited to 'ace')
-rw-r--r--ace/Stats.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/ace/Stats.h b/ace/Stats.h
index 599214fcebb..b6898a22755 100644
--- a/ace/Stats.h
+++ b/ace/Stats.h
@@ -27,7 +27,8 @@ class ACE_Export ACE_Stats_Value
// = DESCRIPTION
// Container struct for 64-bit signed quantity and its
// precision. It would be nicer to use a fixed-point class, but
- // this is sufficient.
+ // this is sufficient. Users typically don't need to use this
+ // class directly; see ACE_Stats below.
public:
ACE_Stats_Value (const u_int precision);
// Constructor, which requires precision in terms of number of
@@ -85,6 +86,15 @@ class ACE_Export ACE_Stats
// internally.
// 4) It checks for overflow of internal state variables.
// 5) It has no static variables of other than built-in types.
+ //
+ // Example usage:
+ // ACE_Stats stats;
+ // for (u_int i = 0; i < n; ++i)
+ // {
+ // const ACE_UINT32 sample = /* ... */;
+ // stats.sample (sample);
+ // }
+ // stats.print_summary (3);
public:
ACE_Stats (void);
// Default constructor.