File: rate.hpp

package info (click to toggle)
python-visual 1%3A5.12-1.1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 7,672 kB
  • ctags: 7,636
  • sloc: cpp: 15,593; sh: 9,615; ansic: 6,631; python: 4,737; makefile: 385
file content (14 lines) | stat: -rw-r--r-- 439 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef VPYTHON_UTIL_RATE_HPP
#define VPYTHON_UTIL_RATE_HPP

namespace cvisual {

// This function is stateful and allows an application to control its loop
// execution rate.  When calling rate() once per iteration, rate inserts a small
// delay that is calibrated such that the loop will execute at about 'freq'
// iterations per second.
void rate( const double& freq);

} // !namespace cvisual

#endif // !defined VPYTHON_UTIL_RATE_HPP