This is some weird question, but I need to create an artificial lag in order to check how my game works during the stock decline ... I have no idea how to do this ... I would like to be able to enable / turn off the delay if possible.
If you want to slow down the code, you can enter a lock using the NSThread class method sleepForTimeInterval:
sleepForTimeInterval:
To simulate a slow network connection, Craig Hockenberry wrote this blog post some time ago.
Source: https://habr.com/ru/post/1391797/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1391792/determining-which-class-to-use-at-runtime&usg=ALkJrhheqPe5BCNzgUhoTmHvWXgayCE8sQThe object specified for the update is not recognized - c #TimeSpan difference from negative to positive konvesta - c #What Scala function replaces this procedural statement? - scalahttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1391796/get-desktop-path-for-all-administrators-in-c&usg=ALkJrhjZbzJlhTu5w72fOGbD0m6CkFO1dwjava garbage collector - "get" deleted objects - javaA print job sent to the printer but did not print anything. Java - javaJava PDF printing: job sent to print job queue but doesn't print anything - javaExecute function in html loaded with ajax - javascriptPrinting the current html page on a printer from java bean to jsf - javaAll Articles