InfluxData.Net
InfluxData.Net copied to clipboard
-Point2 class added to support nano and micro seconds insert/get
-Nano and microsecond support added
Thanks for this. I'll use some bits of the code you made, but I'll have to refactor it. I want to avoid introducing an additional class Point2 which is essentially a duplicate just to support NS and MS, it would bring in confusion. The original Point class should support MS and NS.
Hello @pootzko Thanks for your feedback. Couple of points why I implemented it in this way.
- In
PointTimestampis of typeDateTime, andDateTimecan't provide nano seconds resolution. - I extend the
Pointclass to add an additional timestamp field of type long, In my opinion adding this field to same Point class can add to confusion. - I understand that playing with
DateTimeis very convenient in C#, but for nano seconds the user has to provide long value of nano seconds - Change impact was lower.
Anyways I would be happy to provide any help if required.