Cleanup project
- To prepare being able to instead create games in a different repository
This commit is contained in:
@@ -123,6 +123,9 @@ namespace Copium
|
||||
if(trimmedLine.empty())
|
||||
continue;
|
||||
|
||||
if (trimmedLine[0] == '/' && trimmedLine[1] == '/')
|
||||
continue;
|
||||
|
||||
if(trimmedLine == "---")
|
||||
{
|
||||
return;
|
||||
|
||||
@@ -15,4 +15,14 @@ namespace Copium
|
||||
{
|
||||
return std::chrono::duration<double>(std::chrono::high_resolution_clock::now() - startTime).count();
|
||||
}
|
||||
|
||||
double Timer::ElapsedRestart()
|
||||
{
|
||||
std::chrono::time_point<std::chrono::steady_clock> newTime = std::chrono::high_resolution_clock::now();
|
||||
|
||||
double elapsedTime = std::chrono::duration<double>(newTime - startTime).count();
|
||||
startTime = newTime;
|
||||
|
||||
return elapsedTime;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,5 +13,6 @@ namespace Copium
|
||||
|
||||
void Start();
|
||||
double Elapsed();
|
||||
double ElapsedRestart();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user