Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Timing issues


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-08-2008, 03: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, 07:22 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

See this thread and the solution in the last post: Font Problem ??
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 On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 12:54 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0