Claypool

Courses

Publications

Students

Projects

Service

Downloads

Misc


Dragonfly: Clock Class Reference
Dragonfly 2.2
A text-based game engine
Public Member Functions | Protected Attributes

Clock Class Reference

The clock, for timing (such as the game loop) More...

#include <Clock.h>

List of all members.

Public Member Functions

 Clock ()
 Sets prev_ts to current time.
long int delta (void)
 Return time elapsed since delta() was called.
long int split (void)
 Return time elapsed since delta() was last called.

Protected Attributes

struct timespec prev_ts

Detailed Description

The clock, for timing (such as the game loop)


Member Function Documentation

long int Clock::delta ( void  )

Return time elapsed since delta() was called.

Units are microseconds.

long int Clock::split ( void  )

Return time elapsed since delta() was last called.

Units are microseconds.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Friends