Direct naar hoofdinhoud

Uitvoeringstijd

Onofficiële Beta-vertaling

Deze pagina is vertaald door PageTurner AI (beta). Niet officieel goedgekeurd door het project. Een fout gevonden? Probleem melden →

Wat

Geeft de uitvoeringstijd weer van het eerder uitgevoerde commando.

Voorbeeldconfiguratie

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

Opties

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

Stijl

Stijl bepaalt het formaat waarin de tijd wordt weergegeven. De onderstaande tabel toont enkele voorbeeldtijden voor elke optie.

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

Template (informatie)

standaard sjabloon
 {{ .FormattedMs }}

Eigenschappen

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