--- linuxsampler/trunk/src/scriptvm/CoreVMFunctions.cpp 2017/06/22 10:31:02 3284 +++ linuxsampler/trunk/src/scriptvm/CoreVMFunctions.cpp 2017/06/22 10:45:38 3285 @@ -15,6 +15,7 @@ #include #include "tree.h" #include "ScriptVM.h" +#include "../common/RTMath.h" namespace LinuxSampler { @@ -71,15 +72,17 @@ VMFnResult* CoreVMFunction_message::exec(VMFnArgs* args) { if (!args->argsCount()) return errorResult(); + uint64_t usecs = RTMath::unsafeMicroSeconds(RTMath::real_clock); + VMStringExpr* strExpr = dynamic_cast(args->arg(0)); if (strExpr) { - std::cout << "[ScriptVM] " << strExpr->evalStr() << "\n"; + printf("[ScriptVM %.3f] %s\n", usecs/1000000.f, strExpr->evalStr().c_str()); return successResult(); } VMIntExpr* intExpr = dynamic_cast(args->arg(0)); if (intExpr) { - std::cout << "[ScriptVM] " << intExpr->evalInt() << "\n"; + printf("[ScriptVM %.3f] %d\n", usecs/1000000.f, intExpr->evalInt()); return successResult(); }