gxPL  1.0
Tools, Application and Framework for xPL

Detailed Description

Collaboration diagram for Time:

Functions

char * gxPLDateStr (unsigned long t, const char *format)
 converts the system time t into a null-terminated string More...
 
char * gxPLDateTimeStr (unsigned long t, const char *format)
 converts the system time t into a null-terminated string More...
 
unsigned long gxPLTime (void)
 System time This time can be an absolute time (a date) or relative to the system startup (on embedded platform, for example) More...
 
int gxPLTimeDelayMs (unsigned long ms)
 suspends execution for (at least) ms milliseconds More...
 
int gxPLTimeMs (unsigned long *ms)
 System time in milliseconds. More...
 
char * gxPLTimeStr (unsigned long t, const char *format)
 converts the system time t into a null-terminated string More...
 

Function Documentation

char* gxPLDateStr ( unsigned long  t,
const char *  format 
)

converts the system time t into a null-terminated string

Parameters
ttime return by gxPLTime
formatsame as strftime() on unix, NULL if default (yyyymmdd)
Returns
system time t into a null-terminated string
char* gxPLDateTimeStr ( unsigned long  t,
const char *  format 
)

converts the system time t into a null-terminated string

Parameters
ttime return by gxPLTime
formatsame as strftime() on unix, NULL if default (yyyymmddhhmmss)
Returns
system time t into a null-terminated string
Examples:
logger/gxpl-logger.c.
unsigned long gxPLTime ( void  )

System time This time can be an absolute time (a date) or relative to the system startup (on embedded platform, for example)

Returns
time in seconds
Examples:
logger/gxpl-logger.c.
int gxPLTimeDelayMs ( unsigned long  ms)

suspends execution for (at least) ms milliseconds

Parameters
msdelay in milliseconds
Returns
0, < 0 if error occurs
int gxPLTimeMs ( unsigned long *  ms)

System time in milliseconds.

Parameters
mspointer on the result
Returns
0, < 0 if error occurs
char* gxPLTimeStr ( unsigned long  t,
const char *  format 
)

converts the system time t into a null-terminated string

Parameters
ttime return by gxPLTime
formatsame as strftime() on unix, NULL if default (hhmmss)
Returns
system time t into a null-terminated string