mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 12:41:54 +00:00
rename some vars
This commit is contained in:
parent
ef1c33d2d5
commit
b3bdf83bd8
@ -25,11 +25,11 @@ namespace fastCos{
|
||||
for(float i=begin; i<end; i = nextafterf(i, end))
|
||||
result = glm::cos(i);
|
||||
const std::clock_t timestamp3 = std::clock();
|
||||
const std::clock_t time_fastCos = timestamp2 - timestamp1;
|
||||
const std::clock_t time_cos = timestamp3 - timestamp2;
|
||||
std::printf("fastCos Time %d clocks\n", static_cast<unsigned int>(time_fastCos));
|
||||
std::printf("cos Time %d clocks\n", static_cast<unsigned int>(time_cos));
|
||||
return time_fastCos < time_cos ? 0 : 1;
|
||||
const std::clock_t time_fast = timestamp2 - timestamp1;
|
||||
const std::clock_t time_default = timestamp3 - timestamp2;
|
||||
std::printf("fastCos Time %d clocks\n", static_cast<unsigned int>(time_fast));
|
||||
std::printf("cos Time %d clocks\n", static_cast<unsigned int>(time_default));
|
||||
return time_fast < time_default ? 0 : 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user