Skip to content

Exchange SampleRateContainer with SamplePeriod class #234

@Apollo3zehn

Description

@Apollo3zehn
  • based on TimeSpan:
public SamplePeriod(TimeSpan period)
{
    _period = period;
    this.EnsureIsMultipleOf(period, TimeSpan.FromSeconds(1));
}
  • Should be multiple of 1 second because data writer base assumes this condition
  • Should also be multiple of 1 day (e.g. sample period of 18 seconds is multiple of 1 day but others are not) for aggregations
  • Timespan limits frequency to 10 MHz, but one could simply multiply all values by 1000 to get higher frequencies (on the cost of constraints for lower frequency limit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions