time

time is a skill for Claude Code, Codex from x-cmd/x-cmd. It costs 46 tokens per session (428 once invoked), scanned A, original, Apache-2.0.

A command-line tool for measuring how long commands take to run, from one run to repeated statistical tests. A benchmark is a measured comparison of program performance.

In plain words
What is it for?
Timing commands, benchmarking repeated runs, comparing implementations, checking performance changes, and producing CSV, TSV, or YAML results.
Why use it?
It replaces rough timing with more precise measurements and helps reveal normal variation across repeated runs. It can also compare several commands and export results for other programs to use.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Timing commands, benchmarking repeated runs, comparing implementations, checking performance changes, and producing CSV, TSV, or YAML results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/x-cmd/x-cmd/time
About the project

X-CMD is a POSIX-shell toolkit that provides reusable shell modules and on-demand command-line packages for bash, zsh, ash, and dash. It is designed for people and AI agents that need shell utilities, integrations, and agent-related workflows, and the catalogue contains a large collection of skills for using it.

x-cmd/x-cmd · 4,769 stars · on GitHub · x-cmd.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add x-cmd/x-cmd --skill time
Clone the repo
git clone --depth 1 https://github.com/x-cmd/x-cmd

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for time

README.md
[![agentmods](https://agentmods.dev/badge/skills/x-cmd/x-cmd/time/github.svg)](https://agentmods.dev/skills/x-cmd/x-cmd/time)
Your own site
<a href="https://agentmods.dev/skills/x-cmd/x-cmd/time"><img src="https://agentmods.dev/badge/skills/x-cmd/x-cmd/time/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for time

Your own site · 80×15
<a href="https://agentmods.dev/skills/x-cmd/x-cmd/time"><img src="https://agentmods.dev/badge/skills/x-cmd/x-cmd/time.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 428 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00428
Opus 5.5 $0.00018 $0.00171
Sonnet 5.5 $0.00009 $0.00086
Haiku 4.5 $0.00005 $0.00043

Measured 3mo ago against content hash 56702d1ef24e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

time scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

mod/skill0/lib/skill0/it/time/SKILL.md · 63 lines

What it actually says

time — skill0

Measure command execution time. From single-shot microsecond timing to multi-run statistical analysis.

Quick Start

# With x-cmd
x time <command>                      # Single microsecond timing
x time stress -c 100 <command>        # 100-run statistics
x time cmp 'cmd1' 'cmd2' 'cmd3'      # Compare commands

# Without x-cmd — use shell built-ins
time <command>                        # Basic timing
# For benchmarking, use a loop:
for i in $(seq 1 100); do
  start=$(date +%s%N)
  <command>
  end=$(date +%s%N)
  echo $(( end - start ))
done

What's Available

  • x time <cmd> — Single run, microsecond precision
  • x time getms <cmd> — Millisecond precision
  • x time stress -c N <cmd> — N runs with full stats
  • x time stress -b N <cmd> — Auto-decide runs within budget
  • x time cmp 'c1' 'c2' — Compare multiple commands

Output Formats

  • --csv CSV for programmatic analysis
  • --tsv Tab-separated
  • --yml YAML

This skill0 grows

Starting with the essentials. Will add:

  • Benchmarking patterns
  • Statistical interpretation guide
  • Common performance anti-patterns
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 63 lines · 46 tokens per session scan A 56702d1ef24e

Subscribe to this mod's changes

time is a skill published in the GitHub repository x-cmd/x-cmd (4,769 stars, last pushed 6d ago), licensed Apache-2.0. It adds 46 tokens to every session and 428 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

time compared with skills from other repositories

time next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
timex-cmd/x-cmdSkill4.8k6d agoApache-2.0A46Claude Code, Codex
dnanexus-integrationsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A49Claude Code, Codex
latchbio-integrationsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A45Claude Code, Codex
lambda-gpu-cloudsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A32Claude Code, Codex
modal-serverless-gpusynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A54Claude Code, Codex
tensorpool-gpu-cloudsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A34Claude Code, Codex
runpod-gpu-cloudsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A32Claude Code, Codex