convertTimestamp, convertTimestampNS
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DEFunction Syntax
void convertTimestamp(dword timestamp, dword& days, byte& hours, byte& minutes, byte& seconds, word& milliSeconds, word& microSeconds); // form 1void convertTimestampNS(qword timestamp, dword& days, byte& hours, byte& minutes, byte& seconds, word& milliSeconds, word& microSeconds, word& nanoSeconds); // form 2
Description
Converts a time stamp to separate parts. (form 1: maximum time: .2^32 * 10 microseconds = 11 hours, 55 minutes, 49 seconds, 672 milliseconds, 96 microseconds).Parameters
- timestamp:
- time stamp in 10 microseconds (form 1)
- time stamp in nanoseconds (form 2)
- days: Receives the days of the time stamp
- hours: Receives the hours the time stamp (between 0 and 23)
- minutes: Receives the minutes of the time stamp (between 0 and 59)
- seconds: Receives the seconds of the time stamp (between 0 and 59)
- milliseconds: Receives the milliseconds of the time stamp (between 0 and 999)
- microseconds: Receives the microseconds of the time stamp (between 0 and 999)
- nanoseconds (only form 2): Receives the nanoseconds of the time stamp (between 0 and 999)