Commit 3303e73d authored by Claes Sjofors's avatar Claes Sjofors

Time function to get current time in ascii added

parent 952ccd39
......@@ -554,6 +554,15 @@ time_AtoAscii (
return TIME__SUCCESS;
}
//! Get current time in ascii
char *time_GetTimeAscii( time_eFormat format)
{
static char buf[80];
time_AtoAscii( 0, format, buf, sizeof(buf));
return buf;
}
//! Convert ascii to timespec.
pwr_tStatus
......
......@@ -207,6 +207,7 @@ pwr_tDeltaTime * time_ZeroD (pwr_tDeltaTime*);
void time_Sleep (float time);
int time_GetTime (pwr_tTime *ts);
int time_GetTimeMonotonic (pwr_tTime *ts);
char *time_GetTimeAscii( time_eFormat format);
int time_PeriodPreviousMonth( pwr_tTime *time, pwr_tTime *from, pwr_tTime *to);
int time_PeriodPreviousWeek( pwr_tTime *time, pwr_tTime *from, pwr_tTime *to);
void time_PreviousDayBreak( pwr_tTime *time, pwr_tTime *daybreak);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment