English
Forum & Help

Program - lass you Time ...

 

Erasmus.Herold
Hallöchen ...

gives it a Possibility in Infinity-Profan a Verzögerung in Millisekunden To to achieve?

Z.B. wait 1000

Greeting
Erasmus
 
04/09/16  
 




Michael
W.
with  [...] 
 
XProfan X3
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
04/09/16  
 




Erasmus.Herold
1. Ansatz:
dev.thread.sleep ( long ms )
=> park me in the doing the whole system one. The expected display comes first to the interval (How described). the bring then nothing.

2. Ansatz
time(Raster_schwarz,5000)
=> The procedure "Raster_schwarz" becomes immediate called, no 5 sec interval.

what now?

Greeting
Erasmus
 
04/09/16  
 




Michael
W.
me falls then only a Own Warteschleife one

proc Raster
los_gehts = time(-1) + 5000
while time(-1) < los_gehts
irgendwas_sinnvolles()
wend
Raster_schwarz()
endproc

i don't know, whether "sleep(0)"The system moreover walk can. so would the system then others releases moreover run. simply times the function so into Loop settle.
 
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
04/09/16  
 




Erasmus.Herold
The interval on itself functions, but ...
... take we the following example:

The procedure "Schlafe" corresponds to your example.

Result:
first a long interval, then The 3 Blöcke Text at a single blow and not How planned nacheinander.

Greeting
Erasmus
 
04/09/16  
 




Michael
W.
means sleep then so realized?

proc sleep
los_gehts = time(-1) + 5000
while time(-1) < los_gehts
dev.thread.sleep(0)
wend
endproc

so as itself anhört becomes in the Loop nothing other registered. really must the system there to that Zuge come.
 
XProfan X3
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
04/09/16  
 




Erasmus.Herold
very, park itself first one.
shows subsequently any Lines at a single blow.

Greeting
Erasmus
 
04/09/16  
 




Michael
W.
then must there well David time ran.

See here  [...] 
and here  [...] 

Android operates hold something differently...
 
XProfan X3
System: Windows 8/10, XProfan X4
Programmieren, das spannendste Detektivspiel der Welt.
04/09/16  
 




Erasmus.Herold
okay - thanks

then remaining my Program first once without Verzögerung.

cu - Erasmus
 
04/09/16  
 



Ehm,

"time(Raster_schwarz,5000)" is already long not any more currently,

look too always into Ref:  [...] 

simply:

here too very beautiful Timer with Userdata:  [...] 
 
04/10/16  
 




Erasmus.Herold
is already interestingly, which ways a Programming-Language on one mobilen Endgerät runs ...

here your suggestion into small Program umgesetzt:
// Timer
cls
print "Das Prrogramm begins."
print "Nun Waiting we five sec ..."
dev.thread.settimer(5000,@meineTimerProc)
print "Programmende ..."

proc meineTimerProc

    print "Die 5000ms are now circa."

endproc


The Bildschirmausgabe results but How follows:

the Program begins.
now Waiting we five sec ...
End of program ...
(deference! now come 5 sec interval!!!)
The 5000ms are now circa.
 
04/10/16  
 



so is it too correctly. and virtual, "falsch" is solely your spending "Programmende ..." because the program end Yes not. (End of program by end).
 
04/10/16  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

15.343 Views

Themeninformationen

this Topic has 3 subscriber:

Erasmus.Herold (9x)
Michael W. (5x)
iF (3x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie