source: abuse/trunk/src/imlib/timing.h

Last change on this file was 577, checked in by Sam Hocevar, 11 years ago

game: get rid of milli_wait() and rewrite the fixed framerate handling.

  • Property svn:keywords set to Id
File size: 642 bytes
RevLine 
[56]1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 1995 Crack dot Com
[494]4 *  Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
[56]5 *
6 *  This software was released into the Public Domain. As with most public
[555]7 *  domain software, no warranty is made or implied by Crack dot Com, by
8 *  Jonathan Clark, or by Sam Hocevar.
[56]9 */
10
[2]11#ifndef __TIMING_HPP_
12#define __TIMING_HPP_
13
14class time_marker
15{
[112]16public:
[555]17#if defined __CELLOS_LV2__
18    uint64_t ticks;
19#else
[112]20    long seconds;
[124]21    long micro_seconds;
[555]22#endif
[112]23    void get_time();
[124]24    time_marker();
[112]25    double diff_time(time_marker *other); // return time diff in seconds
26};
[2]27
28#endif
29
Note: See TracBrowser for help on using the repository browser.