MGL(Win32)
読み取り中…
検索中…
一致する文字列を見つけられません
mgl_chrono_module_win32.h
[詳解]
1// SPDX-License-Identifier: Zlib
2/* ------------------------------------------------------------------------- */
9/* ------------------------------------------------------------------------- */
10
11#ifndef INCGUARD_MGL_CHRONO_MODULE_WIN32_H_1617009530
12#define INCGUARD_MGL_CHRONO_MODULE_WIN32_H_1617009530
13
14#include <mgl/mgl_environment.h>
15#if defined(MGL_TARGET_WIN32)
16
18
19namespace MGL::System
20{
23{
24public:
25 [[nodiscard]] EpochTime GetCurrentEpochTime() const noexcept override;
26
27 [[nodiscard]] bool IsAvailableTickTimer() const noexcept override;
28 [[nodiscard]] TickTime GetTickTime() const noexcept override;
29 [[nodiscard]] float TicksToNanoseconds(TickTime tickTime) const noexcept override;
30};
31} // namespace MGL::System
32
33#endif // MGL_TARGET_WIN32
34#endif // INCGUARD_MGL_CHRONO_MODULE_WIN32_H_1617009530
35
36// vim: et ts=4 sw=4 sts=4
日付と時間のモジュールインターフェース
Definition mgl_chrono_module_interface.h:20
Win32用の日付と時間のモジュール
Definition mgl_chrono_module_win32.h:23
float TicksToNanoseconds(TickTime tickTime) const noexcept override
TickTimeをナノ秒に変換
Definition mgl_chrono_module_win32.cc:68
bool IsAvailableTickTimer() const noexcept override
Tickタイマーに対応しているかを取得
Definition mgl_chrono_module_win32.cc:41
TickTime GetTickTime() const noexcept override
現在のTickTimeを取得
Definition mgl_chrono_module_win32.cc:53
EpochTime GetCurrentEpochTime() const noexcept override
現在時刻をエポック時間で取得
Definition mgl_chrono_module_win32.cc:28
time_t EpochTime
UNIXエポック時間を表す型
Definition mgl_chrono_defs.h:22
uint64_t TickTime
Tickタイムを表す型
Definition mgl_chrono_defs.h:78
MGL 日付と時間のモジュールインターフェース
MGL 環境定義