File: timer.txt

package info (click to toggle)
fuse-emulator 1.3.2%2Bdfsg1-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 10,456 kB
  • ctags: 9,261
  • sloc: ansic: 83,215; sh: 11,503; perl: 3,806; makefile: 1,000; yacc: 254; lex: 143
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.