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.


Ticks truncated on the device?


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-11-2007, 04:25 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 164
Default Ticks truncated on the device?

I've been trying to improve the performance of one of my programs, so I dropped in a few lines of code to see how many ticks were elapsing from one segment of code to the next.

Running the program on the desktop, I get values for ticks / cTicksPerSecond of something like '0.0624896'.

Running on the device, I get whole numbers only.

If I just output the raw ticks value (rather than divide by cTicksPerSecond), the last several digits are always zero.

The device is an HTC TyTn II running WM6. This also happens on an AT&T 8125 running WM5 (which yes, I know, is also an HTC unit, but I don't know the HTC model number.) Oh, and I'm using Basic4PPC v5.8.

What gives?

Gary

Reply With Quote
  #2 (permalink)  
Old 12-11-2007, 06:29 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,900
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

See my post #3 in this thread

Ticks, 1000000 in a second?
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
Converting date to ticks value mozaharul Questions & Help Needed 3 10-22-2008 10:51 AM
Ticks as a floating point value on XP (not 2000) lancaster Questions & Help Needed 4 04-09-2008 11:38 AM
Ticks, 1000000 in a second? colin9876 Bug Reports 6 12-09-2007 02:40 PM


All times are GMT. The time now is 07:37 PM.


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