summaryrefslogtreecommitdiff
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
commit5fa20cb58855b0901a32adecc31acdbb708e03f0 (patch)
tree88adc0602cd7238497ed4d8c7d629e1c1d4d828f
parent691cb20e995df98ef0abf9ff814b0723a7ad2ceb (diff)
downloadATCD-5fa20cb58855b0901a32adecc31acdbb708e03f0.tar.gz
added example usage
-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.