×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Oct 2004
    Posts
    52

    CPeriodic vs CHeartbeat

    Hi,
    I want to create an accurate timer that plays a tone after every 2 seconds (for example). I have implemented this using a CPeriod timer, and it appears fairly accurate at the moment, but I suspect that if i need to do anymore processing between events it will be less accurate.

    So my question is, would I be better off using CHeartbeat? How would I implement this? How different is it to using a CPeriodic?

    Thanks,
    Miranda

  2. #2
    Regular Contributor
    Join Date
    Oct 2004
    Posts
    52

    Re: CPeriodic vs CHeartbeat

    no one else needs an accurate timer?

  3. #3
    Registered User
    Join Date
    Jan 2006
    Posts
    13

    Re: CPeriodic vs CHeartbeat

    i didn't try it out, but it's known from the sdk that hearbeat is more accurate since it will sync with system time in case of out-of-sync etc...

    i'd like to ask you a question in this opportunity,
    is it possible to use CPeriodic callback function NOT as a static one?
    if not,
    is it possible to get the iCoeEnv somehow within the static function (cb) ?

    10x
    |mishka|

  4. #4
    Registered User
    Join Date
    Jan 2006
    Posts
    13

    Re: CPeriodic vs CHeartbeat

    got it... simple

    RWsSession iWsSession;
    iWsSession.Connect() / Close();

    thanks anyway

    |mishka|

  5. #5
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    84

    Re: CPeriodic vs CHeartbeat

    hi mrianda, Do you still have yor applicaiton with you which you had implemented using CPeriod. Can you share that with me.

Similar Threads

  1. Replies: 6
    Last Post: 2006-11-20, 19:39
  2. Graphics -- CPeriodic seems really slow
    By DimensionGames in forum Symbian
    Replies: 9
    Last Post: 2006-03-25, 14:40
  3. multiple CPeriodic
    By akermen in forum Symbian
    Replies: 0
    Last Post: 2005-10-13, 20:50
  4. CPeriodic doesn't work in emulator
    By OklyDokly in forum Symbian
    Replies: 2
    Last Post: 2004-06-04, 14:29
  5. CHeartbeat problem
    By xuantl in forum Symbian
    Replies: 0
    Last Post: 2003-07-10, 03:25

Posting Permissions

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