mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
Kill the last timeGetTime calls.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4921 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
a08bfc1344
commit
a43428253b
7 changed files with 21 additions and 20 deletions
|
@ -132,7 +132,7 @@ cl_command_queue GetCommandQueue()
|
|||
|
||||
cl_program CompileProgram(const char *Kernel)
|
||||
{
|
||||
u32 compileStart = timeGetTime();
|
||||
u32 compileStart = Common::Timer::GetTimeMs();
|
||||
int err;
|
||||
cl_program program;
|
||||
program = clCreateProgramWithSource(OpenCL::g_context, 1, (const char **) & Kernel, NULL, &err);
|
||||
|
@ -152,13 +152,13 @@ cl_program CompileProgram(const char *Kernel)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
NOTICE_LOG(COMMON, "OpenCL CompileProgram took %.3f seconds", (float)(timeGetTime() - compileStart) / 1000.0);
|
||||
NOTICE_LOG(COMMON, "OpenCL CompileProgram took %.3f seconds", (float)(Common::Timer::GetTimeMs() - compileStart) / 1000.0);
|
||||
return program;
|
||||
}
|
||||
|
||||
cl_kernel CompileKernel(cl_program program, const char *Function)
|
||||
{
|
||||
u32 compileStart = timeGetTime();
|
||||
u32 compileStart = Common::Timer::GetTimeMs();
|
||||
int err;
|
||||
|
||||
// Create the compute kernel in the program we wish to run
|
||||
|
@ -168,7 +168,7 @@ cl_kernel CompileKernel(cl_program program, const char *Function)
|
|||
HandleCLError(err, "Failed to create compute kernel!");
|
||||
return NULL;
|
||||
}
|
||||
NOTICE_LOG(COMMON, "OpenCL CompileKernel took %.3f seconds", (float)(timeGetTime() - compileStart) / 1000.0);
|
||||
NOTICE_LOG(COMMON, "OpenCL CompileKernel took %.3f seconds", (float)(Common::Timer::GetTimeMs() - compileStart) / 1000.0);
|
||||
return kernel;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -128,7 +128,7 @@ std::string Timer::GetTimeElapsedFormatted() const
|
|||
// The number of milliseconds since the start, use a different value if the timer is stopped
|
||||
u64 Milliseconds;
|
||||
if (m_Running)
|
||||
Milliseconds = timeGetTime() - m_StartTime;
|
||||
Milliseconds = GetTimeMs() - m_StartTime;
|
||||
else
|
||||
Milliseconds = m_LastTime - m_StartTime;
|
||||
// Seconds
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue