November 28, 2020, 02:42:53 PM

Author Topic: [bb] wait(time) by Nike [ 1+ years ago ]  (Read 404 times)

Offline BlitzBot

  • Jr. Member
  • **
  • Posts: 1
[bb] wait(time) by Nike [ 1+ years ago ]
« on: June 29, 2017, 12:28:41 AM »
Title : wait(time)
Author : Nike
Posted : 1+ years ago

Description : To wait 5 seconds, people type in Delay 5000. Now all you have to type is wait5. It saves 5 spaces which doesn't sound like alot of room but if you can type 60 words-per-minute, and a word was 3 letters long (so 160 letters per minute) and you used the delay command 16 times in a minute, you would save 5 seconds of that time. So if you did that 12 times (12 minutes) with a total of 80 delay's, you would save one minute. Thats a lot of math! Short version: for every 12 minutes you spend codeing you save a minute of time. So for an hour of coding, you save 5 minutes using the folling code. Here's the code and please comment. All you must do is save this, and in your program use the include command to include these functions in your program. Goes to 1 minute which would be wait60

Code :
Code: BlitzBasic
  1. Function wait1()
  2. Delay 1000
  3. End Function
  4.  
  5. Function wait2()
  6. Delay 2000
  7. End Function
  8.  
  9. Function wait3()
  10. Delay 3000
  11. End Function
  12.  
  13. Function wait4()
  14. Delay 4000
  15. End Function
  16.  
  17. Function wait5()
  18. Delay 5000
  19. End Function
  20.  
  21. Function wait6()
  22. Delay 6000
  23. End Function
  24.  
  25. Function wait7()
  26. Delay 7000
  27. End Function
  28.  
  29. Function wait8()
  30. Delay 8000
  31. End Function
  32.  
  33. Function wait9()
  34. Delay 9000
  35. End Function
  36.  
  37. Function wait10()
  38. Delay 10000
  39. End Function
  40.  
  41. Function wait11()
  42. Delay 11000
  43. End Function
  44.  
  45. Function wait12()
  46. Delay 12000
  47. End Function
  48.  
  49. Function wait13()
  50. Delay 13000
  51. End Function
  52.  
  53. Function wait14()
  54. Delay 14000
  55. End Function
  56.  
  57. Function wait15()
  58. Delay 15000
  59. End Function
  60.  
  61. Function wait16()
  62. Delay 16000
  63. End Function
  64.  
  65. Function wait17()
  66. Delay 17000
  67. End Function
  68.  
  69. Function wait18()
  70. Delay 18000
  71. End Function
  72.  
  73. Function wait19()
  74. Delay 19000
  75. End Function
  76.  
  77. Function wait20()
  78. Delay 20000
  79. End Function
  80.  
  81. Function wait21()
  82. Delay 21000
  83. End Function
  84.  
  85. Function wait22()
  86. Delay 22000
  87. End Function
  88.  
  89. Function wait23()
  90. Delay 23000
  91. End Function
  92.  
  93. Function wait24()
  94. Delay 24000
  95. End Function
  96.  
  97. Function wait25()
  98. Delay 25000
  99. End Function
  100.  
  101. Function wait26()
  102. Delay 26000
  103. End Function
  104.  
  105. Function wait27()
  106. Delay 27000
  107. End Function
  108.  
  109. Function wait28()
  110. Delay 28000
  111. End Function
  112.  
  113. Function wait29()
  114. Delay 29000
  115. End Function
  116.  
  117. Function wait30()
  118. Delay 30000
  119. End Function
  120.  
  121. Function wait31()
  122. Delay 31000
  123. End Function
  124.  
  125. Function wait32()
  126. Delay 32000
  127. End Function
  128.  
  129. Function wait33()
  130. Delay 33000
  131. End Function
  132.  
  133. Function wait34()
  134. Delay 34000
  135. End Function
  136.  
  137. Function wait35()
  138. Delay 35000
  139. End Function
  140.  
  141. Function wait36()
  142. Delay 36000
  143. End Function
  144.  
  145. Function wait37()
  146. Delay 37000
  147. End Function
  148.  
  149. Function wait38()
  150. Delay 38000
  151. End Function
  152.  
  153. Function wait39()
  154. Delay 39000
  155. End Function
  156.  
  157. Function wait40()
  158. Delay 40000
  159. End Function
  160.  
  161. Function wait41()
  162. Delay 41000
  163. End Function
  164.  
  165. Function wait42()
  166. Delay 42000
  167. End Function
  168.  
  169. Function wait43()
  170. Delay 43000
  171. End Function
  172.  
  173. Function wait44()
  174. Delay 44000
  175. End Function
  176.  
  177. Function wait45()
  178. Delay 45000
  179. End Function
  180.  
  181. Function wait46()
  182. Delay 46000
  183. End Function
  184.  
  185. Function wait47()
  186. Delay 47000
  187. End Function
  188.  
  189. Function wait48()
  190. Delay 48000
  191. End Function
  192.  
  193. Function wait49()
  194. Delay 49000
  195. End Function
  196.  
  197. Function wait50()
  198. Delay 50000
  199. End Function
  200.  
  201. Function wait51()
  202. Delay 51000
  203. End Function
  204.  
  205. Function wait52()
  206. Delay 52000
  207. End Function
  208.  
  209. Function wait53()
  210. Delay 53000
  211. End Function
  212.  
  213. Function wait54()
  214. Delay 54000
  215. End Function
  216.  
  217. Function wait55()
  218. Delay 55000
  219. End Function
  220.  
  221. Function wait56()
  222. Delay 56000
  223. End Function
  224.  
  225. Function wai517()
  226. Delay 57000
  227. End Function
  228.  
  229. Function wait58()
  230. Delay 58000
  231. End Function
  232.  
  233. Function wait59()
  234. Delay 59000
  235. End Function
  236.  
  237. Function wait60()
  238. Delay 60000
  239. End Function


Comments :


KillerX(Posted 1+ years ago)

 Seems pointless.  Somebody would need to be a pretty bad coder to use the delay command so much that it makes a significant difference worth the extra memory.


TaskMaster(Posted 1+ years ago)

 If you type delay commands for an hour, you save 5 minutes?  I don't think I type 1 minute of delay commands in an entire program that might take weeks/months to write.


Jesse(Posted 1+ years ago)

 Ho wow! I thought I was bad. ...that is so silly. why would I do that if I can do something like this:
Code: [Select]

funciton secs(seconds:float)
     wait 1000*seconds
end function
and how about minutes:
Code: [Select]
function mins(minutes:float)
    secs(60*minutes)
end function



Naughty Alien(Posted 1+ years ago)

 ..these are really pointless stuff..


Jesse(Posted 1+ years ago)

 true


Mahan(Posted 1+ years ago)

 Take it easy, guys.Maybe this is/seems useful in Nikes current project? And if not everyone should have the right to be "new to programming" and find out what they like by own experiments.Personally I'd go for Jesses suggestion with "shortcut abbreviation functions" for most work that would involve a lot of "waits":function wSec()function wMin()function wHour()function wDay()function wWeek()etc...This is also similar to what can be found in the std-libs of many higher level languages.


Warner(Posted 1+ years ago)

 <div class="quote"> and you used the delay command 16 times in a minute, you would save 5 seconds of that time </div>:) Funny, but a bit of a waste of the code archive. [/i]

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal