File: timer.txt

package info (click to toggle)
fuse-emulator 1.6.0%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 9,228 kB
  • sloc: ansic: 93,856; sh: 4,334; perl: 3,921; makefile: 998; yacc: 245; lex: 139
file content (16 lines) | stat: -rw-r--r-- 534 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
What you need to implement for Fuse's timing routines
=====================================================

If you're using SDL as the user interface, Fuse will use SDL's timing routines
and no further implementation is required.

If you're not using SDL, two routines are required:

* double compat_timer_get_time( void )

Return the number of seconds since an arbitrary epoch, or a value < 0 if
the time could not be determined.

* void compat_timer_sleep( int ms )

Cause Fuse to go to sleep for the given number of milliseconds.