Skip to content
Skills Library
Programming · Analysis

time

/time

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".

Author
x-cmd ↗
Repository
x-cmd ↗
Licence
Apache-2.0
Last repository change
24.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 24.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

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".

Triggers from the description

timingbenchmarkperformanceprofiling
Original author description

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 it works

  1. Quick Start
  2. What's Available
  3. Output Formats
  4. This skill0 grows
  5. Related
Original SKILL.md headings · 49 lines, 179 words
SKILL.md preview
---
name: time
description: |
  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".

metadata:
  version: "0.1.0"
  category: "performance"
  tags: "timing,benchmark,performance,measurement,statistics"
  repository: "https://github.com/x-cmd/skill0"
  type: "skill0"
---


# time — skill0

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

## Quick Start

```bash
# 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

## Related

Versions

RepositoryScoreLicence
This page · x-cmd/x-cmd100Apache-2.0
Dianel555/DSkills100MIT

Database snapshot: 13.11.2026 · package version 7a778f915eb7 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90performance:benchmark
    Use when timing a program or command, asking whether a change or version made it faster, or building a benchmark harness. For repeated optimization toward a target, use performance:hill-climb.
  • 100profiling-application-performance
    Execute this skill enables AI assistant to profile application performance, analyzing cpu usage, memory consumption, and execution time. it is triggered when the user requests performance analysis, bottleneck identification, or optimization recommendations. the... Use when…
  • 100profiling-application-performance
    Execute this skill enables AI assistant to profile application performance, analyzing cpu usage, memory consumption, and execution time. it is triggered when the user requests performance analysis, bottleneck identification, or optimization recommendations. the... Use when…
  • 100matlab-write-performance-tests
    Writes MATLAB performance tests using the matlab.perftest.TestCase framework. Use when asked to write, create, or add performance tests for MATLAB code, benchmark functions, measure execution time with statistical rigor, or use runperf.
  • 90esp32-camera-xclk-timing-validation
    Use when designing, reviewing, debugging or validating camera xclk timing validation for ESP32 firmware; apply target-specific constraints, failure analysis and measurable verification before release.
  • 95hyperfine-benchmarking
    Use this skill to benchmark shell commands reliably with warmup runs, statistical summaries, and exportable artifacts using hyperfine.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.