Created
October 1, 2021 15:16
-
-
Save ekickx/f43e78ada9ad23b72b75e60567455398 to your computer and use it in GitHub Desktop.
Simple zsh startup timer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ZSH_INIT_TIME=$(date +%s%N) | |
########################## | |
# KONFIGURASI ZSH KALIAN # | |
########################## | |
ZSH_LOADED_TIME=$(date +%s%N) | |
ZSH_STARTUP_TIME=$(((ZSH_LOADED_TIME - ZSH_INIT_TIME) / 1000000)) | |
printf "Startup time: $ZSH_STARTUP_TIME ms\n" | |
unset ZSH_INIT_TIME ZSH_LOADED_TIME ZSH_STARTUP_TIME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why haven't I thought of it?
Your solution helped me out! Thanks man 👍