This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* USAGE: | |
* #include <ctime> | |
* ... | |
* void your_func() { | |
* measure_time t(__func__); | |
* // your code... | |
* } | |
*/ | |
struct measure_time { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'zlib' | |
require 'intel_hex_record' | |
def main | |
if ARGV.empty? | |
warn "usage: #{File.basename $0} records.hex [records.hex ..]" | |
end | |