Revision: 1362
Author: [email protected]
Date: Thu Sep 16 11:03:07 2010
Log: Clarify the docs re clocks
http://code.google.com/p/perl-devel-nytprof/source/detail?r=1362

Modified:
 /trunk/lib/Devel/NYTProf.pm

=======================================
--- /trunk/lib/Devel/NYTProf.pm Sun Sep 12 05:01:13 2010
+++ /trunk/lib/Devel/NYTProf.pm Thu Sep 16 11:03:07 2010
@@ -833,27 +833,25 @@
many timings. When using these clocks NYTProf outputs timings as a count of 100
 nanosecond ticks.

+=head3 CLOCK_MONOTONIC
+
+CLOCK_MONOTONIC represents the amount of time since an unspecified point in
+the past (typically system start-up time).  It increments uniformly
+independent of adjustments to 'wallclock time'. NYTProf will use this clock by
+default, if available.
+
 =head3 CLOCK_REALTIME

CLOCK_REALTIME is typically the system's main high resolution 'wall clock time' source. The same source as used for the gettimeofday() call used by most kinds
 of perl benchmarking and profiling tools.

-If your system doesn't support clock_gettime() then NYTProf will use
-gettimeofday(), or the nearest equivalent,
-
The problem with real time is that it's far from simple. It tends to drift and then be reset to match 'reality', either sharply or by small adjustments (via the
 adjtime() system call).

 Surprisingly, it can also go backwards, for reasons explained in
-http://preview.tinyurl.com/5wawnn
-
-=head3 CLOCK_MONOTONIC
-
-CLOCK_MONOTONIC represents the amount of time since an unspecified point in
-the past (typically system start-up time).  It increments uniformly
-independent of adjustments to 'wallclock time'.
+http://preview.tinyurl.com/5wawnn so CLOCK_MONOTONIC is preferred.

 =head3 CLOCK_VIRTUAL

@@ -887,6 +885,9 @@

 This section lists other clock sources that NYTProf may use.

+If your system doesn't support clock_gettime() then NYTProf will use
+gettimeofday(), or the nearest equivalent,
+
 =head3 gettimeofday

 This is the traditional high resolution time of day interface for most

--
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.

Group hosted at:  http://groups.google.com/group/develnytprof-dev
Project hosted at:  http://perl-devel-nytprof.googlecode.com
CPAN distribution:  http://search.cpan.org/dist/Devel-NYTProf

To post, email:  [email protected]
To unsubscribe, email:  [email protected]

Reply via email to