webmcp

annotate framework/env/trace/_open_section.lua @ 343:34bf5f7abe0d

Code cleanup in extos.c: use 1.0e9 instead of 0.000000001 to avoid floating-point inaccuracies, added "const" qualifiers to avoid two compiler warnings
author jbe
date Thu Mar 26 01:56:10 2015 +0100 (2015-03-26)
parents 04b648660f9a
children
rev   line source
jbe/bsw@0 1 function trace._open_section(node)
jbe/bsw@0 2 local node = trace._new_entry(node)
jbe/bsw@0 3 node.section = true
jbe@302 4 node.db_time = 0
jbe@299 5 node.start_real_time = extos.monotonic_hires_time()
jbe@299 6 node.start_proc_time = os.clock()
jbe@302 7 local stack = trace._stack
jbe@302 8 stack[#stack+1] = node
jbe/bsw@0 9 return node
jbe/bsw@0 10 end

Impressum / About Us