×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    44

    delay time for Ao_timer

    Hi I have a doubt. In the timer program given below:

    #importing the library using import command

    import e32
    timer = e32.Ao_timer()
    #delay is set to 4.0
    delay = 4.0

    #defining a function
    def do_something(arg=None):
    # your code to be repeated every interval goes here
    timer.after(delay, do_something)

    # To start the timer once
    timer.after(delay, do_something)

    is delay in second? How can I give a delay in hours or daily wise?Is there a limit to the delay time?From my experience I think it is in seconds. When I gave delay as 200 it was repeated about 200 seconds .I gave it as 43200(12 hours) but it does not seem to work.Actually I want to do something every one week.Is there any way to doing it?

    Regards
    Simil

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: delay time for Ao_timer

    Set it to the number of seconds in a week.

Similar Threads

  1. Time Delay between two video files
    By swarna.nokia in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2009-07-19, 10:50
  2. Time delay in j2me Application!
    By jackofall in forum Mobile Java General
    Replies: 4
    Last Post: 2009-05-04, 11:07
  3. work-around for bugging Ao_timer
    By simo.salminen in forum Symbian
    Replies: 1
    Last Post: 2006-05-28, 20:59
  4. To set a Time delay in Bluetooth
    By Neelakantan in forum Bluetooth Technology
    Replies: 0
    Last Post: 2005-12-23, 04:15
  5. SMIL time delay
    By mendras in forum General Messaging
    Replies: 3
    Last Post: 2003-10-29, 09:52

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×