[wip] cosmetics / warning

parent 2a322d60
Pipeline #10280 failed with stages
in 1 minute and 51 seconds
......@@ -3418,12 +3418,9 @@ void Camera::_pco_ResetLib(int &err)
err = 0;
#ifdef __linux__
DEB_ALWAYS() << "NOT IMPLEMENTED IN LINUX";
DEB_ALWAYS() << "INFO: function does NOT exists in linux [" << fnId << "]";
return;
#else
err = PCO_ResetLib();
PCO_CHECK_ERROR(err, fnId);
......
......@@ -107,24 +107,24 @@ char *getTimestamp(timestampFmt fmtIdx, time_t xtime) {
st.wHour, st.wMinute, st.wSecond, st.wMilliseconds);
#else
struct timespec tickNow = {0,0};
time_t timeRaw;
struct tm * timeInfo;
clock_gettime(CLOCK_REALTIME, &tickNow);
time_t rawtime;
struct tm * timeinfo;
time (&rawtime);
timeinfo = localtime(&rawtime);
__sprintfSExt(timeline, sizeof(timeline),"%4d/%02d/%02d %02d:%02d:%02d.%03d",
timeinfo->tm_year+1900,
timeinfo->tm_mon+1,
timeinfo->tm_mday,
timeinfo->tm_hour,
timeinfo->tm_min,
timeinfo->tm_sec,
(int)(tickNow.tv_nsec/1000000)
time (&timeRaw);
timeInfo = localtime(&timeRaw);
__sprintfSExt(timeline, sizeof(timeline),
"%4d/%02d/%02d %02d:%02d:%02d.%03d",
timeInfo->tm_year+1900,
timeInfo->tm_mon+1,
timeInfo->tm_mday,
timeInfo->tm_hour,
timeInfo->tm_min,
timeInfo->tm_sec,
int((tickNow.tv_nsec/1000000))
);
// __sprintfSExt(timeline, sizeof(timeline),"getTimestamp IsoMilliSec: LINUX - not defined");
#endif
return timeline;
}
......
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