Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: 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/~rockbox
Received on 2003-09-22

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy