Saltar al contenido principal

Tiempo de ejecución

Traducción Beta No Oficial

Esta página fue traducida por PageTurner AI (beta). No está respaldada oficialmente por el proyecto. ¿Encontraste un error? Reportar problema →

Qué hace

Muestra el tiempo de ejecución del comando ejecutado anteriormente.

Configuración de ejemplo

{
"type": "executiontime",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#8800dd",
"template": " <#fefefe></> {{ .FormattedMs }} ",
"options": {
"threshold": 500,
"style": "austin",
"always_enabled": true
}
}

Opciones

NameTypeDefaultDescription
always_enabledbooleanfalsealways show the duration
thresholdint500minimum duration (milliseconds) required to enable this segment
styleenumaustinone of the available format options

Estilo

El estilo especifica el formato en el que se mostrará el tiempo. La tabla siguiente muestra tiempos de ejemplo para cada opción.

format0.001s2.1s3m2.1s4h3m2.1s
austin1ms2.1s3m 2.1s4h 3m 2.1s
roundrock1ms2s 100ms3m 2s 100ms4h 3m 2s 100ms
dallas0.0012.13:2.14:3:2.1
galveston00:00:0000:00:0200:03:0204:03:02
galvestonms00:00:00:00100:00:02:10000:03:02:10004:03:02:100
houston00:00:00.00100:00:02.100:03:02.104:03:02.1
amarillo0.001s2.1s182.1s14,582.1s
round1ms2s3m 2s4h 3m
lucky7    1ms 2.00s  3m  2s 4h  3m
iso8601PT0SPT2SPT3M2SPT4H3M2S
iso8601msPT0.001SPT2.1SPT3M2.1SPT4H3M2.1S

Plantilla (info)

plantilla predeterminada
 {{ .FormattedMs }}

Propiedades

NameTypeDescription
.Msnumberthe execution time in milliseconds
.FormattedMsstringthe formatted value based on the style above