- [Syntactical changes only]
Fixed the indentation of some files.
This commit is contained in:
parent
01124e2104
commit
cd2ef14e4e
10
src/timer.c
10
src/timer.c
@ -10,7 +10,8 @@ static clock_t endwait = 0;
|
|||||||
/**
|
/**
|
||||||
* <= 0 means none.
|
* <= 0 means none.
|
||||||
*/
|
*/
|
||||||
void set_time_limit (int seconds)
|
void
|
||||||
|
set_time_limit (int seconds)
|
||||||
{
|
{
|
||||||
if (seconds > 0)
|
if (seconds > 0)
|
||||||
{
|
{
|
||||||
@ -25,13 +26,15 @@ void set_time_limit (int seconds)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//! Retrieve time limit
|
//! Retrieve time limit
|
||||||
int get_time_limit ()
|
int
|
||||||
|
get_time_limit ()
|
||||||
{
|
{
|
||||||
return time_max_seconds;
|
return time_max_seconds;
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Check whether time limit has passed.
|
//! Check whether time limit has passed.
|
||||||
int passed_time_limit ()
|
int
|
||||||
|
passed_time_limit ()
|
||||||
{
|
{
|
||||||
if (endwait <= 0)
|
if (endwait <= 0)
|
||||||
{
|
{
|
||||||
@ -48,4 +51,3 @@ int passed_time_limit ()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user