Blame view

sip/Utils/Utools.hpp 379 Bytes
c887a0f0   Hu Chunming   提交初成版代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  #ifndef __UTOOLS_HPP__
  #define __UTOOLS_HPP__
  
  #include <chrono>
  
  using namespace std;
  
  namespace Utools{
  
      static long get_cur_time_ms() {
          chrono::time_point<chrono::system_clock, chrono::milliseconds> tpMicro
              = chrono::time_point_cast<chrono::milliseconds>(chrono::system_clock::now());
          return tpMicro.time_since_epoch().count();
      }
  
  }
  
  #endif