aboutsummaryrefslogtreecommitdiffstats
path: root/src/SctConst.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/SctConst.h')
-rw-r--r--src/SctConst.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/SctConst.h b/src/SctConst.h
new file mode 100644
index 0000000..1a7a060
--- /dev/null
+++ b/src/SctConst.h
@@ -0,0 +1,11 @@
+/* 這個檔案用來存放人家所說的「程式內定」的常數 (hard coding) */
+
+/* sctproc_checktime 每隔幾奈秒檢查一次時間 */
+#define SCTJUDGE_PROC_CHECKTIME_INTERVAL 128000000
+
+/* sctproc_monitor 每個幾奈秒更新一次程序監視器 */
+#define SCTJUDGE_PROC_MONITOR_INTERVAL 384000000
+
+/* sctproc_main 中,受測程式最多可以暫停幾次 */
+#define SCTJUDGE_PROC_MAX_STOP_TIMES 5
+