diff options
author | Steve Huston <shuston@riverace.com> | 2002-01-10 23:44:20 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2002-01-10 23:44:20 +0000 |
commit | f432c9154c46680602753d4778c2e3576fc0bd59 (patch) | |
tree | bf750a7a586827d96d7028b76ac6d894cba616f4 /ace/Profile_Timer.h | |
parent | 14c3164326b6ebb5391405328a0590c540a1016a (diff) | |
download | ATCD-f432c9154c46680602753d4778c2e3576fc0bd59.tar.gz |
ChangeLogTag:Thu Jan 10 18:35:41 2002 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ace/Profile_Timer.h')
-rw-r--r-- | ace/Profile_Timer.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/ace/Profile_Timer.h b/ace/Profile_Timer.h index 8bdacb52fbf..0d2d0a1e772 100644 --- a/ace/Profile_Timer.h +++ b/ace/Profile_Timer.h @@ -40,21 +40,26 @@ public: * @brief Keeps track of the various user, system, and elapsed (real) * times. * - * If <ACE_HAS_FLOATING_POINT> is enabled these values are in - * microseconds, otherwise, they are in seconds. + * @note If @c ACE_HAS_FLOATING_POINT is enabled, these values are in + * microseconds; otherwise, they are in seconds. */ class ACE_Elapsed_Time { public: + /// Elapsed wall clock time. ACE_timer_t real_time; + + /// CPU time spent in user space. ACE_timer_t user_time; + + /// CPU time spent in system space. ACE_timer_t system_time; }; typedef ACE_Rusage Rusage; // = Initialization and termination methods. - /// Default constructor. + /// Default constructor. Clears all time values to 0. ACE_Profile_Timer (void); /// Shutdown the timer. @@ -68,10 +73,11 @@ public: int stop (void); // = Resource utilization methods. - /// Compute the time elapsed since <start>. + /// Compute the time elapsed between calls to @c start() and @c stop(). int elapsed_time (ACE_Elapsed_Time &et); - /// Compute the amount of resource utilization since the start time. + /// Compute the amount of resource utilization between calls to @c start() + /// and @c stop(). void elapsed_rusage (ACE_Profile_Timer::Rusage &rusage); /// Return the resource utilization (don't recompute it). |