summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/Clock.inl
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-03-01 01:41:44 +0100
committerAki <please@ignore.pl>2024-03-01 01:41:44 +0100
commit154e2d7f4a063703dbdbb0984579be10355bf785 (patch)
treed96eb234fdcd1e9f50559145227a0ecfcc5f9407 /StarsEx/Clock.inl
parentf616cfc78632fde437cfe15c7066bc8f31370d87 (diff)
downloadstarshatter-154e2d7f4a063703dbdbb0984579be10355bf785.zip
starshatter-154e2d7f4a063703dbdbb0984579be10355bf785.tar.gz
starshatter-154e2d7f4a063703dbdbb0984579be10355bf785.tar.bz2
Rename inline files to .inl.h
Diffstat (limited to 'StarsEx/Clock.inl')
-rw-r--r--StarsEx/Clock.inl28
1 files changed, 0 insertions, 28 deletions
diff --git a/StarsEx/Clock.inl b/StarsEx/Clock.inl
deleted file mode 100644
index 42a2693..0000000
--- a/StarsEx/Clock.inl
+++ /dev/null
@@ -1,28 +0,0 @@
-/* Starshatter: The Open Source Project
- Copyright (c) 2021-2022, Starshatter: The Open Source Project Contributors
- Copyright (c) 2011-2012, Starshatter OpenSource Distribution Contributors
- Copyright (c) 1997-2006, Destroyer Studios LLC.
-*/
-
-#include "Clock.h"
-
-#include <chrono>
-#include <ratio>
-
-
-template <typename R>
-R
-Clock::GameTime() const
-{
- using target_duration = std::chrono::duration<R, std::milli>;
- return std::chrono::duration_cast<target_duration>(m_game_elapsed).count();
-}
-
-
-template <typename R>
-R
-Clock::RealTime() const
-{
- using target_duration = std::chrono::duration<R, std::milli>;
- return std::chrono::duration_cast<target_duration>(m_real_elapsed).count();
-}