Rockbox mail archive
Subject: Re: DEV timer? GetTicks?
From: Mike Holden (rockbox_at_mikeholden.uklinux.net)
Minuk Choi said:
> Hiya, I'm playing around with the source files... and I was wondering...
> is there a way to grab the current number of ticks or timer? I want to
> write something that implements a time based(in milliseconds) delay. In
> VC++, it was GetTickCount()?
There's a global variable current_tick which counts milliseconds. Set to
zero at boot time.
Rockbox page: http://www.mikeholden.org/~rockbox
Page was last modified "Jan 10 2012" The Rockbox Crew