<legend id='YAOUT'><style id='YAOUT'><dir id='YAOUT'><q id='YAOUT'></q></dir></style></legend>
    <bdo id='YAOUT'></bdo><ul id='YAOUT'></ul>
<i id='YAOUT'><tr id='YAOUT'><dt id='YAOUT'><q id='YAOUT'><span id='YAOUT'><b id='YAOUT'><form id='YAOUT'><ins id='YAOUT'></ins><ul id='YAOUT'></ul><sub id='YAOUT'></sub></form><legend id='YAOUT'></legend><bdo id='YAOUT'><pre id='YAOUT'><center id='YAOUT'></center></pre></bdo></b><th id='YAOUT'></th></span></q></dt></tr></i><div id='YAOUT'><tfoot id='YAOUT'></tfoot><dl id='YAOUT'><fieldset id='YAOUT'></fieldset></dl></div>
  • <small id='YAOUT'></small><noframes id='YAOUT'>

    <tfoot id='YAOUT'></tfoot>

      1. 是否有可用于 CLR 的高分辨率(微秒、纳秒)DateTime 对象?

        Is there a high resolution (microsecond, nanosecond) DateTime object available for the CLR?(是否有可用于 CLR 的高分辨率(微秒、纳秒)DateTime 对象?)
      2. <small id='rRlqf'></small><noframes id='rRlqf'>

          <legend id='rRlqf'><style id='rRlqf'><dir id='rRlqf'><q id='rRlqf'></q></dir></style></legend>
            <tfoot id='rRlqf'></tfoot>
              <bdo id='rRlqf'></bdo><ul id='rRlqf'></ul>

                  <tbody id='rRlqf'></tbody>

                1. <i id='rRlqf'><tr id='rRlqf'><dt id='rRlqf'><q id='rRlqf'><span id='rRlqf'><b id='rRlqf'><form id='rRlqf'><ins id='rRlqf'></ins><ul id='rRlqf'></ul><sub id='rRlqf'></sub></form><legend id='rRlqf'></legend><bdo id='rRlqf'><pre id='rRlqf'><center id='rRlqf'></center></pre></bdo></b><th id='rRlqf'></th></span></q></dt></tr></i><div id='rRlqf'><tfoot id='rRlqf'></tfoot><dl id='rRlqf'><fieldset id='rRlqf'></fieldset></dl></div>
                  本文介绍了是否有可用于 CLR 的高分辨率(微秒、纳秒)DateTime 对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个存储微秒级时间戳的仪器,我需要存储这些时间戳作为从仪器收集信息的一部分.请注意,我确实需要生成时间戳;这些时间戳由仪器本身使用高分辨率实时操作系统预先生成.解析这些值不是问题——它们使用标准格式存储在 UTC 时间.最初我想使用 C# DateTime 结构 只能存储毫秒分辨率的时间戳.

                  I have an instrument that stores timestamps the microsecond level, and I need to store those timestamps as part of collecting information from the instrument. Note that I do not need to generate timestamps; these time stamps are pre-generated by the instrument itself using a high resolution real-time operating system. Parsing out these values is not an issue — they are stored using a standard format in UTC time. Originally I wanted to use the C# DateTime structure can only store time stamps up millisecond resolution.

                  .NET 或支持微秒和(理想情况下)纳秒分辨率时间戳的通用 C# 库是否提供了另一个对象,还是我必须自己推出?

                  Is there another object supplied with .NET or a common C# library that supports micro- and (ideally) nanosecond resolution timestamps, or am I going to have to roll my own?

                  推荐答案

                  毕竟你也许可以使用 DateTime.DateTime.Ticks 的分辨率为 100 纳秒.您可以使用 DateTime.AddTicks 设置刻度.

                  You might be able to use DateTime after all. DateTime.Ticks' resolution is 100 nanoseconds. You can set the ticks with DateTime.AddTicks.

                  这篇关于是否有可用于 CLR 的高分辨率(微秒、纳秒)DateTime 对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)
                  Parameter count mismatch with Invoke?(参数计数与调用不匹配?)
                  How to store delegates in a List(如何将代表存储在列表中)
                  How delegates work (in the background)?(代表如何工作(在后台)?)
                  C# Asynchronous call without EndInvoke?(没有 EndInvoke 的 C# 异步调用?)
                  Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)
                  <i id='TmjbS'><tr id='TmjbS'><dt id='TmjbS'><q id='TmjbS'><span id='TmjbS'><b id='TmjbS'><form id='TmjbS'><ins id='TmjbS'></ins><ul id='TmjbS'></ul><sub id='TmjbS'></sub></form><legend id='TmjbS'></legend><bdo id='TmjbS'><pre id='TmjbS'><center id='TmjbS'></center></pre></bdo></b><th id='TmjbS'></th></span></q></dt></tr></i><div id='TmjbS'><tfoot id='TmjbS'></tfoot><dl id='TmjbS'><fieldset id='TmjbS'></fieldset></dl></div>
                2. <tfoot id='TmjbS'></tfoot>

                      <tbody id='TmjbS'></tbody>
                        <bdo id='TmjbS'></bdo><ul id='TmjbS'></ul>
                      • <legend id='TmjbS'><style id='TmjbS'><dir id='TmjbS'><q id='TmjbS'></q></dir></style></legend>
                      • <small id='TmjbS'></small><noframes id='TmjbS'>