Skip to content

Instantly share code, notes, and snippets.

@kizdolf
Created July 10, 2015 15:01
Show Gist options
  • Save kizdolf/4e5883b3ee97f98738cd to your computer and use it in GitHub Desktop.
Save kizdolf/4e5883b3ee97f98738cd to your computer and use it in GitHub Desktop.
milliseconds to something like 0h23m4s
function msWell(ms) {
return ~~((ms/1000)/3600)+'h'+~~(((ms/1000)%3600)/60)+'m'+~~((ms/1000)%60)+'s';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment