This file contains hidden or 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
| #ifndef TIMER_HPP | |
| #define TIMER_HPP | |
| #include <chrono> | |
| /** | |
| * @tparam TickPeriod - The tick period to use for elapsed times (default std::milli) | |
| * @tparam Clock - The clock class to use (default std::chrono::steady_clock) | |
| */ | |
| template< | |
| class TickPeriod = std::milli, |
This file contains hidden or 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
| // Basic print function with argument substitution. | |
| // Prints the format string, replacing `{}` with a value from the arguments | |
| // list. | |
| // If no more arguments are available, the rest of the format string is | |
| // printed literally. If no {} is present in the format string, it is printed | |
| // literally and any excess arguments are ignored. | |
| // `{{` can be used to escape an opening parenthesis. | |
| // Output is written to a `std::ostream`. | |
| #pragma once | |
| #include <iostream> |
This file contains hidden or 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/sh | |
| # | |
| # Usage: rdiff file1 file2 [diff options] | |
| # | |
| # Does a diff of file1 and file2, passing any extra arguments to the diff command. | |
| # If there are no extra arguments, "-u --color" is used as arguments to diff. | |
| # If either file is not found it is passed to scp to retrieve the file. | |
| # | |
| file_a=$1 |