/[svn]/linuxsampler/trunk/src/scriptvm/CoreVMDynVars.cpp
ViewVC logotype

Annotation of /linuxsampler/trunk/src/scriptvm/CoreVMDynVars.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2942 - (hide annotations) (download)
Wed Jul 13 15:51:06 2016 UTC (7 years, 8 months ago) by schoenebeck
File size: 564 byte(s)
* NKSP: Implemented built-in script variable "$KSP_TIMER".
* NKSP: Implemented built-in script variable "$NKSP_REAL_TIMER".
* NKSP: Implemented built-in script variable "$NKSP_PERF_TIMER".
* NKSP: Implemented built-in script variable "$ENGINE_UPTIME".
* Bumped version (2.0.0.svn14).

1 schoenebeck 2942 /*
2     * Copyright (c) 2016 Christian Schoenebeck
3     *
4     * http://www.linuxsampler.org
5     *
6     * This file is part of LinuxSampler and released under the same terms.
7     * See README file for details.
8     */
9    
10     #include "CoreVMDynVars.h"
11    
12     #include "tree.h"
13     #include "ScriptVM.h"
14     #include "../common/RTMath.h"
15    
16     namespace LinuxSampler {
17    
18     int CoreVMDynVar_NKSP_REAL_TIMER::evalInt() {
19     return RTMath::unsafeMicroSeconds(RTMath::real_clock);
20     }
21    
22     int CoreVMDynVar_NKSP_PERF_TIMER::evalInt() {
23     return RTMath::unsafeMicroSeconds(RTMath::thread_clock);
24     }
25    
26     } // namespace LinuxSampler

  ViewVC Help
Powered by ViewVC