1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) INRIA -
6 * Copyright (C) 2012 - 2016 - Scilab Enterprises
8 * This file is hereby licensed under the terms of the GNU GPL v2.0,
9 * pursuant to article 5.3.4 of the CeCILL v.2.1.
10 * This file was originally licensed under the terms of the CeCILL v2.1,
11 * and continues to be available under such terms.
12 * For more information, see the COPYING file which you should have received
13 * along with this program.
16 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="realtime">
17 <refnamediv xml:id="realtimeinit">
18 <refname>realtimeinit</refname>
19 <refpurpose>時間の単位を設定</refpurpose>
22 <refname>realtime</refname>
23 <refpurpose>日付の原点を設定または指定日付まで待つ</refpurpose>
27 <synopsis>realtimeinit(time_unit)
35 <term>time_unit</term>
38 実数. <literal>realtime</literal> の引数に関連する秒数
53 これら2つの関数はScilabで実時間を処理する際に使用できます.
56 <literal>realtimeinit(time_unit)</literal> は,
57 <literal>realtime</literal> の引数 <literal>t</literal>に
61 <literal>realtime(t0)</literal>を最初にコールした際,
62 カレントの日付が<literal>t0</literal>に設定されます.
63 これ以降のコール<literal>realtime(t)</literal>では,
64 日付<literal>t</literal>に達するまで待機します.
69 <programlisting role="example"><![CDATA[
70 realtimeinit(1/2);//時間の単位を 0.5秒に設定s
71 realtime(0);// カレントの時刻を 0に設定
74 mprintf('current time is '+string(k/2)+'sec .\r\n');
89 <programlisting role="example"><![CDATA[
99 <refsection role="see also">
101 <simplelist type="inline">
103 <link linkend="getdate">getdate</link>