360 Secure SkillHub
360 安全技能中心

Time Tool

该 Skill 以命令行方式接收目标命令及其参数,调用系统计时能力执行命令并输出 real(实际耗时)、user(用户态 CPU 时间)与 sys(内核态 CPU 时间)三项指标,面向性能基准测试与脚本优化分析;示例将被测命令写作 curl、python3 等。

dinghaibin
dinghaibin
热度 31.52
最近更新 2026-05-11 17:47:34
分类:开发依赖:代码执行应用场景:DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add time-tool
Metadata
name
time-tool
description
Measure execution time of commands. Use for performance benchmarking, script optimization, and timing analysis.

Time - Command Execution Timer

Measure how long a command takes to execute. Displays real time, CPU time, and system time for performance analysis and benchmarking.

Usage

time-tool <command> [args...]

Output

  • real: Wall clock time elapsed
  • user: CPU time in user mode
  • sys: CPU time in kernel mode

Examples

time-tool sleep 2
time-tool curl https://example.com
time-tool python3 script.py