• Time


    public class TimeHelper
    {
        private long _start, _stop, _elapsed;
    
        /// <summary>
        /// 获取初始时间戳
        /// </summary>
        public void start()
        {
            _start = Stopwatch.GetTimestamp();
        }
    
        /// <summary>
        /// 获取终结时间戳
        /// </summary>
        public void stop()
        {
            _stop = Stopwatch.GetTimestamp();
        }
    
        /// <summary>
        /// 获取高精度时间间隔
        /// </summary>
        /// <returns></returns>
        public double getTimeInteval()
        {
            return (_stop - _start) * (1.0 / Stopwatch.Frequency);
        }
    }
    
  • 相关阅读:
    UVA
    UVA
    UVA
    UVA
    NLP介绍
    新建Springboot项目
    添加ssh密钥
    git 错误合集
    Git入门操作
    Hadoop MapReduce
  • 原文地址:https://www.cnblogs.com/zdfffg/p/10135547.html
Copyright © 2020-2023  润新知