File: time_util.h

package info (click to toggle)
xgalaga%2B%2B 0.8.4-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 360 kB
  • ctags: 557
  • sloc: cpp: 2,715; makefile: 128
file content (11 lines) | stat: -rw-r--r-- 344 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
#ifndef TIME_UTIL_H
#define TIME_UTIL_H

double CurrentMicroSecond();

// Sleep until 'interval_start_time' + 'interval' is CurrentMicroSecond().
// Return CurrentMicroSecond(). Do not sleep at all if 
// 'interval_start_time' + 'interval' >= CurrentMicroSecond().
double SleepTimeInterval(double interval_start_time, double interval);

#endif