Added namespace Bk

main
anulax1225 ago%!(EXTRA string=1 year)
parent a757f79945
commit e0aac447e8
  1. 4
      src/bakatools/time/time_point.h
  2. 4
      src/bakatools/time/time_span.h

@ -1,8 +1,9 @@
#pragma once
#include <spch.h>
#include <bakatoolspch.h>
#include "time_span.h"
namespace Bk {
template<typename C, typename P>
struct TimePoint
{
@ -46,3 +47,4 @@ struct TimePoint
std::chrono::time_point<C, std::chrono::duration<long int, P>> point;
};
}

@ -1,7 +1,8 @@
#pragma once
#include <spch.h>
#include <bakatoolspch.h>
namespace Bk {
using Nanosecond = std::ratio<1,1000000000>;
using Microsecond = std::ratio<1,1000000>;
using Millisecond = std::ratio<1,1000>;
@ -38,3 +39,4 @@ struct TimeSpan
std::chrono::duration<long int, P> interval;
};
}
Loading…
Cancel
Save