MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / startTimer

Function startTimer

SRC/runtime/commands/interpreter.cpp:47–55  ·  view source on GitHub ↗

Consider reimplmenting to use Tcl built-ins; see https://wiki.tcl-lang.org/page/timers

Source from the content-addressed store, hash-verified

45// https://wiki.tcl-lang.org/page/timers
46//
47static int
48startTimer(ClientData clientData, Tcl_Interp *interp, Tcl_Size argc, TCL_Char ** const argv)
49{
50 if (theTimer == nullptr)
51 theTimer = new Timer();
52
53 theTimer->start();
54 return TCL_OK;
55}
56
57static int
58stopTimer(ClientData clientData, Tcl_Interp *interp, Tcl_Size argc, TCL_Char ** const argv)

Callers 1

timerFunction · 0.70

Calls 1

startMethod · 0.45

Tested by

no test coverage detected