Help with "get_tick_count" - General Discussion and Assistance - CHDK Forum

Help with "get_tick_count"

  • 4 Replies
  • 4174 Views
*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Help with "get_tick_count"
« on: 18 / February / 2008, 08:24:56 »
Advertisements
I need a timer for some code I'm writing. I found the get_tick_count function
(in \platform\generic\wrappers.c, line 144), studied core\gui_bench.c, and
in the function gui_bench_run it looks like the ticks it returns have a lenght
of 0.25 millisec, that is, there's 4000 of them in a second.
Can somebody confirm this please ?

thanks in advance,

wim

edit: and, BTW, in gui_bench_run() I noticed a 'buf = malloc(0x10000)' with no corresponding free(buf) ?
« Last Edit: 18 / February / 2008, 08:42:51 by whim »

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: Help with "get_tick_count"
« Reply #1 on: 18 / February / 2008, 08:41:50 »
1/1000s
CHDK Developer.

*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Help with "get_tick_count"
« Reply #2 on: 18 / February / 2008, 08:44:14 »
Thanks GrAnd !
Was just editing my post while you replied, have added another (dumb?) question


« Last Edit: 18 / February / 2008, 08:48:04 by whim »

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: Help with "get_tick_count"
« Reply #3 on: 18 / February / 2008, 09:04:00 »
line #215 :)
CHDK Developer.


*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Help with "get_tick_count"
« Reply #4 on: 18 / February / 2008, 09:23:46 »
 :-[
Realy don't know what's with my eyes today, sorry

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal