-
Notifications
You must be signed in to change notification settings - Fork 3
/
TimeOps.bi
27 lines (20 loc) · 951 Bytes
/
TimeOps.bi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
'-----------------------------------------------------------------------------------------------------------------------
' Time related routines
' Copyright (c) 2024 Samuel Gomes
'-----------------------------------------------------------------------------------------------------------------------
$INCLUDEONCE
'$INCLUDE:'Common.bi'
'-----------------------------------------------------------------------------------------------------------------------
' TEST CODE
'-----------------------------------------------------------------------------------------------------------------------
'$DEBUG
'DO
' _PRINTSTRING (1, 1), "FPS:" + STR$(Time_GetHertz)
' _LIMIT 75
'LOOP UNTIL _KEYHIT = KEY_ESCAPE
'END
'-----------------------------------------------------------------------------------------------------------------------
DECLARE LIBRARY "TimeOps"
FUNCTION Time_GetTicks~&& ALIAS "GetTicks"
FUNCTION Time_GetHertz~&
END DECLARE