Artifact 864cc51669ed355e586f7bb40c13c1ec2e2ffa81:
- Executable file utils/timecat.rb — part of check-in [18db59ea62] at 2017-12-15 19:54:03 on branch v1.65-bb-installall — attempted to force installation at home (user: bb, size: 412) [annotate] [blame] [check-ins using]
#!/usr/bin/env ruby # -*- Mode: Ruby; -*- # Author: brandon.j.barclay (bjbarcla) 13ww48.1 require 'pathname' STDOUT.sync = true STDERR.sync = true ### main sequence prev = start = Time.now.to_f STDIN.each_line{|line| now = Time.now.to_f total_elapsed = now - start delta = now - prev prev = now puts sprintf("[line_elapsed=%7.2f] [tot_elapsed=%7.2f] |> %s", delta, total_elapsed, line) } exit 0