Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Timing issues

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-08-2008, 02:58 PM
Newbie
 
Join Date: May 2008
Posts: 3
Default Timing issues

I have a project which requires a timer (like a stopwatch).

I have coded this using a timer control and the elapsed time is put into a label to view on screen.

I calculate the elapsed time by subtracting the number of ticks returned by the NOW function at the start of the routine from the value returned by the NOW function at each timer interval. All works fine and accurate enough for my purposes, except...

On the desktop it works as I would like, formatted to 2 decimal places and tenths and hundreths of seconds are shown e.g. 2.63secs. On my device the exact same code will produce only round seconds e.g. 2.00 secs., 3.00 secs.

Does anyone have any ideas why this would be, is it a device limitation? I am using an Orbit XDA device which runs at 201MHz and a desktop which runs at 2.8GHz?

Is there a better way to create 'timing' routines.

Thanks
Lee
Reply With Quote
  #2 (permalink)  
Old 08-08-2008, 06:22 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

See this thread and the solution in the last post: http://www.basic4ppc.com/forum/quest...t-problem.html
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Timing between events Zenerdiode Questions (Windows Mobile) 1 08-26-2008 06:34 AM
text box issues gjoisa Questions (Windows Mobile) 9 05-12-2008 06:18 AM
Hardware Lib related issues Cableguy Questions (Windows Mobile) 11 03-23-2008 02:40 PM
Source Code Form Issues Louis Questions (Windows Mobile) 3 06-16-2007 08:17 PM


All times are GMT. The time now is 10:13 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0