de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Using Computer Clock for parameters
PostPosted: Sat Oct 01, 2011 7:59 pm 
Offline
Regular
Is there a way to have the program pull the time on the computer clock and if it is within a certain range follow a certain path else look again?
Example:

If punishments are carried out only on the 15 minute marks on the clock (12, 3, 6, 9) if a punishment is assigned either in between or too close to one of those to set a timer and wait the next mark to begin the punishment. So if a punishment is assigned at 3:10 it would need to be carried out at 3:15 but if it was assigned at 3:16 it would have to be carried out at 3:30, etc.


Top
 Profile Send private message 
 
 Re: Using Computer Clock for parameters
PostPosted: Sat Oct 01, 2011 10:09 pm 
Offline
Site Admin
User avatar
Yes
Waiting for the clock means blocking others things in this code :
Code:
def time = getTime()
def timeTo15 = 15 * 60 - (time % (15 * 60))
wait(timeTo15)


Top
 Profile Send private message 
 
 Re: Using Computer Clock for parameters
PostPosted: Wed Oct 05, 2011 7:26 pm 
Offline
Regular
Thanks! Worked perfectly! :)


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010 - 2020
This website uses session cookies only.