<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -87,7 +87,12 @@ when &quot;stats&quot;
     io = Roby::Log.open(filename)
 
     cycle_count = io.index_data.size
-    puts &quot;#{cycle_count} cycles between #{io.range.first.to_hms} and #{io.range.last.to_hms}&quot;
+    timespan    = io.range
+    puts &quot;#{cycle_count} cycles between #{timespan.first.to_hms} and #{timespan.last.to_hms}&quot;
+    cpu_time = io.index_data.last[:cpu_time] / 1000
+    real_time = timespan.last - timespan.first
+    ratio = cpu_time / real_time
+    puts &quot;Time: %.2fs CPU / %.2fs real (%i%% CPU use)&quot; % [cpu_time, real_time, ratio * 100]
 
     if io.index_data.first.has_key?(:event_count)
 	min, max = nil</diff>
      <filename>bin/roby-log</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ddbb12078a8a2fcad18adde3fac60bc125618d03</id>
    </parent>
  </parents>
  <author>
    <name>Sylvain Joyeux</name>
    <email>sylvain.joyeux@m4x.org</email>
  </author>
  <url>http://github.com/doudou/roby/commit/2f7fe9afed41cb21d7736e843230c8816e8c0605</url>
  <id>2f7fe9afed41cb21d7736e843230c8816e8c0605</id>
  <committed-date>2008-06-01T13:26:36-07:00</committed-date>
  <authored-date>2008-06-01T13:26:36-07:00</authored-date>
  <message>[bin] roby-log stats displays cumulated time statistics (CPU and real)</message>
  <tree>406430be0294875bb96f6a5e9c6b03ddfec3192d</tree>
  <committer>
    <name>Sylvain Joyeux</name>
    <email>sylvain.joyeux@m4x.org</email>
  </committer>
</commit>
