main.cpp
void countFPS()
{
    double current_time = glfwGetTime();
    num_frames++;
    if (current_time - last_time >= 1.0)
    {
        std::cout << 1000.0 / num_frames << "ms / frame\n";
        num_frames = 0;
        last_time += 1.0;
    }
}
// increment the frame count, and each second print out the time
increment the frame count, and each second print out the time
increment the frame count and each second print out the time
void countFPS()
{
    double current_time = glfwGetTime();
    num_frames++;
    if (current_time - last_time >= 1.0)
    {
        std::cout << 1000.0 / num_frames << "ms / frame\n";
        num_frames = 0;
        last_time += 1.0;
    }
}
void countFPS ( ) { double current_time = glfwGetTime ( ) ; num_frames ++ ; if ( current_time - last_time >= 1.0 ) { std :: cout << 1000.0 / num_frames << " \n " ; num_frames = 0 ; last_time += 1.0 ; } }
increment the frame count, and each second print out the time
increment the frame count and each second print out the time