unsigned int GetTime() { unsigned int value; struct tm *newtime; time_t long_time; time(&long_time); newtime = localtime(&long_time); value = ((newtime->tm_sec) % 10)+((newtime->tm_sec) /10)*16 +((((newtime->tm_min) % 10)+((newtime->tm_min) /10)*16) << 8) +((((newtime->tm_hour) % 10)+((newtime->tm_hour)/10)*16) << 16); return(value); }