static int ClockTimeToSecond(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); TimeHelper.ClockTime arg0 = (TimeHelper.ClockTime)ToLua.CheckObject(L, 1, typeof(TimeHelper.ClockTime)); int o = TimeHelper.ClockTimeToSecond(arg0); LuaDLL.lua_pushinteger(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }