Subversion Repositories Projects

Rev

Rev 513 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 513 Rev 524
Line 14... Line 14...
14
 
14
 
15
void print_data(char * data, std::string type, char * color) {
15
void print_data(char * data, std::string type, char * color) {
16
    char buffer [20];
16
    char buffer [20];
17
    timeval timestamp;
17
    timeval timestamp;
18
    gettimeofday(&timestamp, 0);
18
    gettimeofday(&timestamp, 0);
19
    sprintf(buffer, "%i.%03i", timestamp.tv_sec, (timestamp.tv_usec+500)/1000);
19
    sprintf(buffer, "%i.%07i", timestamp.tv_sec, timestamp.tv_usec);
20
//alternative to show human readable output
20
//alternative to show human readable output
21
/*
21
/*
22
    time_t rawtime;
22
    time_t rawtime;
23
    struct tm * timeinfo;
23
    struct tm * timeinfo;