- tmpValue = Time_Span->startTime.tv_sec;
- tmpValue *= NANSECOND_CONST;
- tmpValue += Time_Span->startTime.tv_nsec;
- custom->hAdjust->lower = tmpValue;
- custom->hAdjust->value = tmpValue;
- tmpValue = Time_Span->endTime.tv_sec;
- tmpValue *= NANSECOND_CONST;
- tmpValue += Time_Span->endTime.tv_nsec;
- custom->hAdjust->upper = tmpValue;
- //tmpValue = time.tv_sec;
- //tmpValue *= NANSECOND_CONST;
- //tmpValue += time.tv_nsec;
- //custom->hAdjust->value = tmpValue;
- /* Step increment to 1/10 of visible area */
- tmpValue = Time_Window.Time_Width.tv_sec;
- tmpValue *= NANSECOND_CONST;
- tmpValue += Time_Window.Time_Width.tv_nsec;
- custom->hAdjust->step_increment = tmpValue / 10;
+ custom->hAdjust->lower = ltt_time_to_double(Time_Span->startTime) *
+ NANOSECONDS_PER_SECOND;
+ custom->hAdjust->value = custom->hAdjust->lower;
+ custom->hAdjust->upper = ltt_time_to_double(Time_Span->endTime) *
+ NANOSECONDS_PER_SECOND;