Skip to content

Instantly share code, notes, and snippets.

@jorovipe97
Last active January 5, 2018 01:39
Show Gist options
  • Save jorovipe97/60618719e644e003684754c269953384 to your computer and use it in GitHub Desktop.
Save jorovipe97/60618719e644e003684754c269953384 to your computer and use it in GitHub Desktop.
// If each iteration has 30ms, then
// 100 000 iterationts * 30ms = 3 000 000ms
// 3 000 000ms/1000ms = 3000s
// 3000s / 60s = 50minutes
function totalTimeInMinutes(iterationsCount, iterationDurationInMs)
{
return ((iterationsCount*iterationDurationInMs)/1000)/60;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment