Skip to content

Exchange SampleRateContainer with SamplePeriod class #234

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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