Main Page | Class List | File List | Class Members | File Members

clock.h File Reference

Go to the source code of this file.

Functions

int get_clock (void)
void increment_clock (void)
char * print_time (void)


Function Documentation

int get_clock void   ) 
 

Definition at line 11 of file clock.c.

Referenced by channel_read_indication(), channel_write_indication(), code_audio(), code_video(), do_cmd(), FindFrameSkip(), interface(), and prompt().

00012 {
00013   return (clock_time);
00014 }

void increment_clock void   ) 
 

Definition at line 17 of file clock.c.

References clock_time.

Referenced by main_loop().

00018 {
00019   clock_time++;
00020 }

char* print_time void   ) 
 

Definition at line 23 of file clock.c.

References clock_time.

Referenced by close_audio_codec(), code_audio(), demultiplex(), main_loop(), and multiplex().

00024 {
00025   static char s[12];
00026   
00027   sprintf(s, 
00028           "%02d:%02d:%02d.%03d", 
00029           (clock_time / 3600000),
00030           (clock_time / 60000) % 60, 
00031           (clock_time / 1000) % 60,
00032           clock_time % 1000);
00033   return (s);
00034 }


Generated on Sun Jul 16 16:27:45 2006 by  doxygen 1.3.9.1