diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-15 14:28:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-15 14:28:16 +0100 |
| commit | dc17395f3a4c19f5eea2590f1d2904e88365c67a (patch) | |
| tree | c7d5a99ee538483b948b756bdf7bcbfbbb62ae2a /src/time_pair.h | |
| parent | 44a5e000d62230451cc35a239c7c3ba83d830bd7 (diff) | |
Add scale functions to time classes.
Diffstat (limited to 'src/time_pair.h')
| -rw-r--r-- | src/time_pair.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/time_pair.h b/src/time_pair.h index deb46c0..a9c1a09 100644 --- a/src/time_pair.h +++ b/src/time_pair.h @@ -50,10 +50,11 @@ public: return _metric; } - FrameTime frame (float frames_per_second) const; - MetricTime metric (float frames_per_second) const; + FrameTime frame (float fps) const; + MetricTime metric (float fps) const; - void add (FrameTime t, float frames_per_second); + void add (FrameTime t, float fps); + void scale (float f, float fps); bool operator== (TimePair const & other) const; |
