summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2017-10-31 12:58:05 -0400
committerJoey Hess <joeyh@joeyh.name>2017-10-31 12:58:05 -0400
commitc5a0deb4fbca8d95a63374e2b2ef1ac0f87520c1 (patch)
tree70b195a557e9424215ddb60770db84aeb9852dd4
parent52e35719dc334da747c543f0da8f2fd0e537b2c6 (diff)
downloadmoreutils-c5a0deb4fbca8d95a63374e2b2ef1ac0f87520c1.tar.gz
document -m
-rwxr-xr-xts9
1 files changed, 8 insertions, 1 deletions
diff --git a/ts b/ts
index 405446a..0ff8669 100755
--- a/ts
+++ b/ts
@@ -33,6 +33,8 @@ case of -s, the time elapsed since start of the program is used.
The default format changes to "%H:%M:%S", and "%.S" and "%.s" can be used
as well.
+The -m switch makes the system's monotonic clock be used.
+
=head1 ENVIRONMENT
The standard TZ environment variable controls what time zone dates
@@ -58,7 +60,12 @@ my $inc=0;
my $sincestart=0;
my $mono=0;
use Getopt::Long;
-GetOptions("r" => \$rel, "i" => \$inc, "s" => \$sincestart, "m" => \$mono) || die "usage: ts [-r] [-i | -s] [format]\n";
+GetOptions(
+ "r" => \$rel,
+ "i" => \$inc,
+ "s" => \$sincestart,
+ "m" => \$mono
+) || die "usage: ts [-r] [-i | -s] [-m] [format]\n";
if ($rel) {
eval q{