示例#1
0
文件: Clock.cpp 项目: deadalnix/CSFML
sfTime sfClock_GetElapsedTime(const sfClock* clock)
{
    CSFML_CHECK_RETURN(clock, sfTimeZero);

    sf::Time time = clock->This.GetElapsedTime();
    return sfMicroseconds(time.AsMicroseconds());
}
示例#2
0
文件: Clock.cpp 项目: deadalnix/CSFML
sfTime sfClock_Restart(sfClock* clock)
{
    CSFML_CHECK_RETURN(clock, sfTimeZero);

    sf::Time time = clock->This.Restart();
    return sfMicroseconds(time.AsMicroseconds());
}
示例#3
0
sfTime * sfClock_restart(sfClock* clock)
{
    CSFML_CHECK_RETURN(clock, sfTime_Zero);

    sf::Time time = clock->This.restart();
    return sfMicroseconds(time.asMicroseconds());
}