0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

cosmetics: reindent

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29198 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2009-04-19 22:27:02 +00:00
parent 2bed79b908
commit fc4f741709

View File

@ -48,7 +48,8 @@ int usec_sleep(int usec_delay)
}
// Returns current time in microseconds
unsigned int GetTimer(void){
unsigned int GetTimer(void)
{
struct timeval tv;
//float s;
gettimeofday(&tv,NULL);
@ -57,7 +58,8 @@ unsigned int GetTimer(void){
}
// Returns current time in milliseconds
unsigned int GetTimerMS(void){
unsigned int GetTimerMS(void)
{
struct timeval tv;
//float s;
gettimeofday(&tv,NULL);
@ -68,7 +70,8 @@ unsigned int GetTimerMS(void){
static unsigned int RelativeTime = 0;
// Returns time spent between now and last call in seconds
float GetRelativeTime(void){
float GetRelativeTime(void)
{
unsigned int t,r;
t = GetTimer();
//t *= 16; printf("time = %ud\n", t);
@ -78,17 +81,21 @@ unsigned int t,r;
}
// Initialize timer, must be called at least once at start
void InitTimer(void){
void InitTimer(void)
{
GetRelativeTime();
}
#if 0
#include <stdio.h>
int main(void){
int main(void)
{
float t = 0;
InitTimer();
while(1){ t+=GetRelativeTime();printf("time= %10.6f\r",t);fflush(stdout); }
while (1) {
t += GetRelativeTime();
printf("time = %10.6f\r", t);
fflush(stdout); }
}
#endif