Time

From x-cmd/x-cmd · View interactive version

Time is an AI agent skill from the GitHub repository x-cmd/x-cmd. Command execution timing — microsecond precision, statistical analysis, comparison. Zero barrier — use with x-cmd or shell built-in time command. Use for "timing", "benchmark", "performance", "profiling".

How to use this skill

Skill file

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

Output Formats

This skill0 grows

Starting with the essentials. Will add:

Related

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.