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.

Ticks truncated on the device?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-11-2007, 03:25 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 162
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, 05:29 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

See my post #3 in this thread

http://www.basic4ppc.com/forum/bug-reports/1286-ticks-1000000-second.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
Converting date to ticks value mozaharul Questions (Windows Mobile) 3 10-22-2008 09:51 AM
Ticks as a floating point value on XP (not 2000) lancaster Questions (Windows Mobile) 4 04-09-2008 10:38 AM
Ticks, 1000000 in a second? colin9876 Bug Reports 6 12-09-2007 01:40 PM


All times are GMT. The time now is 06:04 AM.


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