mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 15:04:41 +00:00
pause support
This commit is contained in:
parent
a5a46a4670
commit
e854c27358
1 changed files with 12 additions and 0 deletions
|
|
@ -94,6 +94,18 @@ public abstract class BasicTest {
|
|||
|
||||
return temp.asFloatBuffer();
|
||||
}
|
||||
|
||||
/**
|
||||
* Pauses the invoking thread for specified milliseconds
|
||||
*
|
||||
* @param time Milliseconds to sleep
|
||||
*/
|
||||
protected void pause(long time) {
|
||||
try {
|
||||
Thread.sleep(time);
|
||||
} catch (InterruptedException inte) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Exits the test NOW, printing errorcode to stdout
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue