Rockbox mail archiveSubject: Re: DEV timer? GetTicks?
Re: DEV timer? GetTicks?
From: Mike Holden <rockbox_at_mikeholden.uklinux.net>
Date: Mon, 22 Sep 2003 09:14:11 +0100 (BST)
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.
-- Mike Holden Rockbox page: http://www.mikeholden.org/~rockboxReceived on 2003-09-22