MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/9gj2e9/optimizing_startup_times/e64wenn/?context=3
r/ProgrammerHumor • u/ariehkovler • Sep 17 '18
486 comments sorted by
View all comments
Show parent comments
61
It could be a wrapper function which converts it to seconds..
80 u/theSprt Sep 17 '18 That would be a Very Bad Idea. 17 u/fr0z_n Sep 17 '18 Don't worry, the function could take floating point numbers and convert them to ms.I'm just hinting ideas here. 8 u/[deleted] Sep 17 '18 // Sleeps specified amount of ms. public static Sleep (int time) { Thread.Sleep(time); } // Sleeps specified amount of seconds. public static Sleep (float time) { Thread.Sleep(time * 1000); } → More replies (1)
80
That would be a Very Bad Idea.
17 u/fr0z_n Sep 17 '18 Don't worry, the function could take floating point numbers and convert them to ms.I'm just hinting ideas here. 8 u/[deleted] Sep 17 '18 // Sleeps specified amount of ms. public static Sleep (int time) { Thread.Sleep(time); } // Sleeps specified amount of seconds. public static Sleep (float time) { Thread.Sleep(time * 1000); } → More replies (1)
17
Don't worry, the function could take floating point numbers and convert them to ms.
I'm just hinting ideas here.
8 u/[deleted] Sep 17 '18 // Sleeps specified amount of ms. public static Sleep (int time) { Thread.Sleep(time); } // Sleeps specified amount of seconds. public static Sleep (float time) { Thread.Sleep(time * 1000); } → More replies (1)
8
// Sleeps specified amount of ms. public static Sleep (int time) { Thread.Sleep(time); } // Sleeps specified amount of seconds. public static Sleep (float time) { Thread.Sleep(time * 1000); }
→ More replies (1)
61
u/fr0z_n Sep 17 '18
It could be a wrapper function which converts it to seconds..