mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 12:41:54 +00:00
fixed: printf -> std::printf and missing include
This commit is contained in:
parent
dadab89566
commit
2a52f56360
@ -11,6 +11,7 @@
|
|||||||
#include <glm/core/type_vec3.hpp>
|
#include <glm/core/type_vec3.hpp>
|
||||||
#include <glm/core/type_vec4.hpp>
|
#include <glm/core/type_vec4.hpp>
|
||||||
#include <glm/core/func_vector_relational.hpp>
|
#include <glm/core/func_vector_relational.hpp>
|
||||||
|
#include <cstdio>
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
@ -317,7 +318,7 @@ int test_vec4_perf_AoS(std::size_t Size)
|
|||||||
|
|
||||||
std::clock_t EndTime = std::clock();
|
std::clock_t EndTime = std::clock();
|
||||||
|
|
||||||
printf("AoS: %d\n", EndTime - StartTime);
|
std::printf("AoS: %d\n", EndTime - StartTime);
|
||||||
|
|
||||||
return Error;
|
return Error;
|
||||||
}
|
}
|
||||||
@ -356,7 +357,7 @@ int test_vec4_perf_SoA(std::size_t Size)
|
|||||||
|
|
||||||
std::clock_t EndTime = std::clock();
|
std::clock_t EndTime = std::clock();
|
||||||
|
|
||||||
printf("SoA: %d\n", EndTime - StartTime);
|
std::printf("SoA: %d\n", EndTime - StartTime);
|
||||||
|
|
||||||
return Error;
|
return Error;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user