Add Music fluctuations project and Chinese plan docs

This commit is contained in:
2026-03-21 15:55:54 +08:00
parent 629455df07
commit a172d75e36
462 changed files with 382904 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#include"Clock.h"
#include <iomanip>
Clock::Clock(){}
Clock::~Clock(){}
double Clock::Update()
{
auto now = std::chrono::high_resolution_clock::now();
auto nowTime = std::chrono::duration_cast<std::chrono::nanoseconds>(now.time_since_epoch()).count();
long long duration = nowTime - m_lastTime;
m_lastTime = nowTime;
float result = duration / 1000000000.0f;
return result;
}
//std::cout << std::fixed << std::setprecision(15) <<deltaTime << std::endl;