MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / exec

Method exec

source/src/scriptinterpreter.cpp:308–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306{
307 QiFunc_time_ds() : QiFunc(0, 1) {}
308 QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override
309 {
310 time_t s = args.empty() ? time(nullptr) : static_cast<time_t>(args[0].toInteger());
311 tm m;
312 localtime_s(&m, &s);
313 return m.tm_sec;
314 }
315};
316/*
317int return: runtime duration msec

Callers

nothing calls this directly

Calls 1

toIntegerMethod · 0.80

Tested by

no test coverage detected