#2740 closed enhancement (fixed)

Suboptimal type for Timestamp_Control

Reported by: Sebastian Huber Owned by: Sebastian Huber
Priority: normal Milestone: 5.1
Component: score Version: 5
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

Currently we have

typedef struct bintime Timestamp_Control;

this type offers more precision than needed. Maybe use sbintime_t (also known as int64_t) instead to simplify computations.

Change History (8)

comment:1 Changed on Feb 15, 2017 at 2:25:52 PM by Sebastian Huber

Milestone: 4.12Indefinite
Owner: set to Sebastian Huber
Status: newassigned

comment:2 Changed on Oct 6, 2017 at 12:59:46 PM by Sebastian Huber

Milestone: Indefinite4.12.0
Status: assignedaccepted

comment:3 Changed on Oct 9, 2017 at 12:15:53 PM by Sebastian Huber <sebastian.huber@…>

In c0623a99/rtems:

score: Simplify _Timestamp_Add_to()

Update #2740.

comment:4 Changed on Oct 9, 2017 at 12:16:07 PM by Sebastian Huber <sebastian.huber@…>

In 2256946/rtems:

score: Use struct timespec for TOD

Use the timestamps only for uptime based values. Use struct timespec
for the absolute time values (TOD).

Update #2740.

comment:5 Changed on Oct 9, 2017 at 12:16:23 PM by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: acceptedclosed

In 65012bf/rtems:

score: Change Timestamp_Control to sbintime_t

The timestamp are based on the uptime. There is no need for a 64-bit
seconds part. The signed 32-bit seconds part of the sbintime_t limits
the uptime to roughly 68 years.

Close #2740.

comment:6 Changed on Oct 12, 2017 at 5:05:47 AM by Sebastian Huber <sebastian.huber@…>

In ed9a6fd/rtems:

posix: Use right time format in adjtime()

Update #2740.

comment:7 Changed on Oct 12, 2017 at 5:27:11 AM by Sebastian Huber <sebastian.huber@…>

In 16db540a/rtems:

Use right time format in _times()

Update #2740.
Close #3179.

comment:8 Changed on Nov 9, 2017 at 6:27:14 AM by Sebastian Huber

Milestone: 4.12.05.1

Milestone renamed

Note: See TracTickets for help on using tickets.