Skip to content

Instantly share code, notes, and snippets.

@ekickx
Created October 1, 2021 15:16
Show Gist options
  • Save ekickx/f43e78ada9ad23b72b75e60567455398 to your computer and use it in GitHub Desktop.
Save ekickx/f43e78ada9ad23b72b75e60567455398 to your computer and use it in GitHub Desktop.
Simple zsh startup timer
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
@sorachii
Copy link

Why haven't I thought of it?
Your solution helped me out! Thanks man 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment