×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    112

    regarding time period

    when i click start it will start a time at 00:00 and will continue in sec untill i click stop .
    how can i implement this
    can u give the idea.
    thanku&regards
    sree

  2. #2
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Bangalore, India
    Posts
    777

    Re: regarding time period

    step-1 Implement a timer
    Step-2 Catch the key
    Step-3 start the Timer
    step-4 Increase the time until again key pressed,stop the timer
    for timer use it "CTimer"

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: regarding time period

    Remeber that the timers can be inaccurate, thus have a TTime variable as your class member, and call HomeTime() for it when you start the timer, then you could have a local TTime and call HomeTime() to it, and check the time passed between the two TTime variables.

    Wiki should have nice examples on timers, so have a look into there.

  4. #4
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    112

    Re: regarding time period

    actually
    wht i need to develop is juat like call duration counter.
    so can i use this TTime.

  5. #5
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: regarding time period

    Sure, just mark down the time when the call starts, and check the time when the call ends. CTelephony would be the API for call monitoring, for which I'm rather sure wiki also has examples for.

  6. #6
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    112

    Re: regarding time period

    thank u
    but i have to update every sec
    like 00:00
    to 00:01
    to 00.02 ....
    so how can i do it
    this is not for call functionality to use CTelephony,still can i use CTelephony .
    thank u

  7. #7
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: regarding time period

    then add a timer that expires every second, and start it when the call starts, and when it expires, just update your UI showing the Timer. You could do a bit of searching yourself, nobody here is going to design & implement the program for you, so its easier to search and try.

Similar Threads

  1. Date & Time Editor in Form Resource.
    By Kavit Patel in forum Symbian
    Replies: 2
    Last Post: 2008-03-03, 06:26
  2. Time is 1 hour off on Nokia 5300
    By Yuriy in forum Mobile Java General
    Replies: 2
    Last Post: 2008-02-24, 21:09
  3. Replies: 2
    Last Post: 2005-12-01, 10:03
  4. Replies: 0
    Last Post: 2005-11-22, 17:15
  5. How to get correct time.
    By dzaga in forum Mobile Java General
    Replies: 2
    Last Post: 2003-08-06, 22:03

Posting Permissions

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