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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/*!
\file
\brief ^CX^væŸÖ
\author Satofumi KAMIMURA
$Id: ticks.cpp 1727 2010-02-26 08:56:46Z satofumi $
*/
#include "ticks.h"
#include "system_ticks.h"
#include "MonitorModeManager.h"
long qrk::ticks(void)
{
// !!! delay() Æ€Êɷ׫
static bool mode_unknown = true;
static bool is_normal_delay = true;
if (mode_unknown) {
MonitorModeManager::MonitorMode mode =
MonitorModeManager::object()->mode();
if ((mode == MonitorModeManager::Play) ||
(mode == MonitorModeManager::Simulation)) {
is_normal_delay = false;
}
mode_unknown = false;
}
if (is_normal_delay) {
return system_ticks();
} else {
// ĶAV~
[VÍA
// BêÌ StopWatch ðp¢œÔðÔ·ÖƵĮì·é
// !!!
// !!! ŒÀ
return system_ticks();
}
}
|