|
ProviewR Programmer's Reference Manual
V7.0.0
|
Functions | |
| int | time_IsNull (pwr_tTime *t1) |
| Test if time is Null. | |
| pwr_tTime * | time_Aadd (pwr_tTime *, pwr_tTime *, pwr_tDeltaTime *) |
| Add an absolute time and a delta time. More... | |
| pwr_tTime * | time_Aadd_NE (pwr_tTime *, pwr_tTime *, pwr_tDeltaTime *) |
| Add an absolute time and a delta time. More... | |
| int | time_Acomp (pwr_tTime *, pwr_tTime *) |
| Compare two timespecs. More... | |
| int | time_Acomp_NE (pwr_tTime *, pwr_tTime *) |
| Compare two timespecs. More... | |
| pwr_tDeltaTime * | time_Adiff (pwr_tDeltaTime *, pwr_tTime *, pwr_tTime *) |
| Subtract a time from a time,. More... | |
| pwr_tDeltaTime * | time_Adiff_NE (pwr_tDeltaTime *, pwr_tTime *, pwr_tTime *) |
| Subtract a time from a time,. More... | |
| pwr_tTime * | time_Asub (pwr_tTime *, pwr_tTime *, pwr_tDeltaTime *) |
| Subtract a delta time from a time,. More... | |
| pwr_tTime * | time_Asub_NE (pwr_tTime *, pwr_tTime *, pwr_tDeltaTime *) |
| Subtract a delta time from a time,. More... | |
| pwr_tDeltaTime * | time_Dabs (pwr_tDeltaTime *, pwr_tDeltaTime *) |
| Take the absolute walue of a delta time. More... | |
| pwr_tDeltaTime * | time_Dabs_NE (pwr_tDeltaTime *, pwr_tDeltaTime *) |
| Take the absolute walue of a delta time. More... | |
| pwr_tDeltaTime * | time_Dadd (pwr_tDeltaTime *, pwr_tDeltaTime *, pwr_tDeltaTime *) |
| Add two delta times, the result is also delta. More... | |
| pwr_tDeltaTime * | time_Dadd_NE (pwr_tDeltaTime *, pwr_tDeltaTime *, pwr_tDeltaTime *) |
| Add two delta times, the result is also delta. More... | |
| pwr_tDeltaTime * | time_Dneg (pwr_tDeltaTime *, pwr_tDeltaTime *) |
| Negate a delta time,. More... | |
| pwr_tDeltaTime * | time_Dneg_NE (pwr_tDeltaTime *, pwr_tDeltaTime *) |
| Negate a delta time,. More... | |
| pwr_tDeltaTime * | time_Dsub (pwr_tDeltaTime *, pwr_tDeltaTime *, pwr_tDeltaTime *) |
| Subtract two delta times. More... | |
| pwr_tDeltaTime * | time_Dsub_NE (pwr_tDeltaTime *, pwr_tDeltaTime *, pwr_tDeltaTime *) |
| Subtract two delta times. More... | |
| int | time_Dcomp (pwr_tDeltaTime *, pwr_tDeltaTime *) |
| Compare two delta times. More... | |
| int | time_Dcomp_NE (pwr_tDeltaTime *, pwr_tDeltaTime *) |
| Compare two delta times. More... | |
| pwr_tStatus | time_DtoAscii (pwr_tDeltaTime *, int, char *, int) |
| Convert a delta time to ascii string. | |
| pwr_tStatus | time_AtoAscii (pwr_tTime *, time_eFormat, char *, int) |
| Convert timespec to ascii. More... | |
| pwr_tStatus | time_AsciiToD (const char *, pwr_tDeltaTime *) |
| Convert ascii to timespec. | |
| pwr_tStatus | time_AsciiToA (const char *, pwr_tTime *) |
| Convert ascii time to timespec. | |
| pwr_tStatus | time_TmToAscii (struct tm *, time_eFormat, char *, int) |
| Convert time struct to string. | |
| pwr_tStatus | time_AsciiToTm (const char *, struct tm *) |
| Convert timestring to struct. | |
| pwr_tDeltaTime * | time_MsToD (pwr_tDeltaTime *, pwr_tInt32) |
| Convert millisec to timespec. More... | |
| pwr_tDeltaTime * | time_FloatToD (pwr_tDeltaTime *, pwr_tFloat32) |
| Convert float to time. More... | |
| pwr_tDeltaTime * | time_Float64ToD (pwr_tDeltaTime *, pwr_tFloat64) |
| Convert double to time. More... | |
| pwr_tFloat32 | time_DToFloat (pwr_tFloat32 *, pwr_tDeltaTime *) |
| Convert time to Float32. More... | |
| pwr_tFloat64 | time_DToFloat64 (pwr_tFloat64 *, pwr_tDeltaTime *) |
| Convert time to Float64. | |
| time_tClock | time_DtoClock (pwr_tStatus *, pwr_tDeltaTime *) |
| Convert delta time to clock time. | |
| pwr_tDeltaTime * | time_ClockToD (pwr_tStatus *, pwr_tDeltaTime *, time_tClock) |
| Convert clock time to delta time. | |
| pwr_tDeltaTime * | time_ZeroD (pwr_tDeltaTime *) |
| Zero a delta time. | |
| int | time_GetTime (pwr_tTime *ts) |
| Get current time. | |
| int | time_GetTimeMonotonic (pwr_tTime *ts) |
| Get current monotonic time. | |
| char * | time_GetTimeAscii (time_eFormat format) |
| Get current time in ascii. | |
| int | time_PeriodPreviousWeek (pwr_tTime *time, pwr_tTime *from, pwr_tTime *to) |
| Calculate start and end time for previous week. More... | |
| void | time_PreviousDayBreak (pwr_tTime *time, pwr_tTime *daybreak) |
| Calculate previous daybreak. | |
| int | time_PrintA (const char *format, pwr_tTime *ts) |
| Print an absolute time. The format should contain s. | |
| pwr_tFloat32 | time_AdiffToFloat (pwr_tTime *t, pwr_tTime *s) |
| Subtract a time from a time and return the differens. More... | |
| pwr_tTime* time_Aadd | ( | pwr_tTime * | result, |
| pwr_tTime * | t, | ||
| pwr_tDeltaTime * | a | ||
| ) |
Add an absolute time and a delta time.
Add two timespecs, result = t + d, where:
If 'result' argument is NULL then 't' will be used as resultant. Returns the address to the resulting time.
Input arguments containing invalid times will cause an exception.
| pwr_tTime* time_Aadd_NE | ( | pwr_tTime * | result, |
| pwr_tTime * | t, | ||
| pwr_tDeltaTime * | a | ||
| ) |
Add an absolute time and a delta time.
Add two timespecs, result = t + d, where:
If 'result' argument is NULL then 't' will be used as resultant. Returns the address to the resulting time.
If any input argument contains an invalid time an invalid time, pwr_cNotATime, is returned.
| int time_Acomp | ( | pwr_tTime * | t1, |
| pwr_tTime * | t2 | ||
| ) |
| int time_Acomp_NE | ( | pwr_tTime * | t1, |
| pwr_tTime * | t2 | ||
| ) |
| pwr_tDeltaTime* time_Adiff | ( | pwr_tDeltaTime * | r, |
| pwr_tTime * | t, | ||
| pwr_tTime * | s | ||
| ) |
Subtract a time from a time,.
r = t - s
Result is always a delta time.
Input arguments containing invalid times will cause an exception.
Definition at line 339 of file co_time.c.
Referenced by time_AdiffToFloat().
| pwr_tDeltaTime* time_Adiff_NE | ( | pwr_tDeltaTime * | r, |
| pwr_tTime * | t, | ||
| pwr_tTime * | s | ||
| ) |
| pwr_tFloat32 time_AdiffToFloat | ( | pwr_tTime * | t, |
| pwr_tTime * | s | ||
| ) |
Subtract a time from a time and return the differens.
as a float value. Input arguments containing invalid times will cause an exception.
Definition at line 2225 of file co_time.c.
References time_Adiff(), and time_DToFloat().
| pwr_tTime* time_Asub | ( | pwr_tTime * | result, |
| pwr_tTime * | t, | ||
| pwr_tDeltaTime * | s | ||
| ) |
| pwr_tTime* time_Asub_NE | ( | pwr_tTime * | result, |
| pwr_tTime * | t, | ||
| pwr_tDeltaTime * | s | ||
| ) |
| pwr_tStatus time_AtoAscii | ( | pwr_tTime * | ts, |
| time_eFormat | format, | ||
| char * | buf, | ||
| int | bufsize | ||
| ) |
Convert timespec to ascii.
NOTE: Not thread safe.
Definition at line 878 of file co_time.c.
Referenced by time_GetTimeAscii(), and time_PrintA().
| pwr_tDeltaTime* time_Dabs | ( | pwr_tDeltaTime * | result, |
| pwr_tDeltaTime * | t | ||
| ) |
| pwr_tDeltaTime* time_Dabs_NE | ( | pwr_tDeltaTime * | result, |
| pwr_tDeltaTime * | t | ||
| ) |
| pwr_tDeltaTime* time_Dadd | ( | pwr_tDeltaTime * | result, |
| pwr_tDeltaTime * | t, | ||
| pwr_tDeltaTime * | a | ||
| ) |
| pwr_tDeltaTime* time_Dadd_NE | ( | pwr_tDeltaTime * | result, |
| pwr_tDeltaTime * | t, | ||
| pwr_tDeltaTime * | a | ||
| ) |
| int time_Dcomp | ( | pwr_tDeltaTime * | t1, |
| pwr_tDeltaTime * | t2 | ||
| ) |
| int time_Dcomp_NE | ( | pwr_tDeltaTime * | t1, |
| pwr_tDeltaTime * | t2 | ||
| ) |
| pwr_tDeltaTime* time_Dneg | ( | pwr_tDeltaTime * | result, |
| pwr_tDeltaTime * | t | ||
| ) |
| pwr_tDeltaTime* time_Dneg_NE | ( | pwr_tDeltaTime * | result, |
| pwr_tDeltaTime * | t | ||
| ) |
| pwr_tDeltaTime* time_Dsub | ( | pwr_tDeltaTime * | result, |
| pwr_tDeltaTime * | t, | ||
| pwr_tDeltaTime * | s | ||
| ) |
| pwr_tDeltaTime* time_Dsub_NE | ( | pwr_tDeltaTime * | result, |
| pwr_tDeltaTime * | t, | ||
| pwr_tDeltaTime * | s | ||
| ) |
| pwr_tFloat32 time_DToFloat | ( | pwr_tFloat32 * | f, |
| pwr_tDeltaTime * | dt | ||
| ) |
Convert time to Float32.
Not thread safe if f is NULL.
Definition at line 1340 of file co_time.c.
Referenced by time_AdiffToFloat().
| pwr_tDeltaTime* time_Float64ToD | ( | pwr_tDeltaTime * | dt, |
| pwr_tFloat64 | f | ||
| ) |
| pwr_tDeltaTime* time_FloatToD | ( | pwr_tDeltaTime * | dt, |
| pwr_tFloat32 | f | ||
| ) |
| pwr_tDeltaTime* time_MsToD | ( | pwr_tDeltaTime * | dt, |
| pwr_tInt32 | ms | ||
| ) |
| int time_PeriodPreviousWeek | ( | pwr_tTime * | time, |
| pwr_tTime * | from, | ||
| pwr_tTime * | to | ||
| ) |