LuaBox
Loading...
Searching...
No Matches
Sleep.h
Go to the documentation of this file.
1#pragma once
2
3#include "lua_include.h"
4#include "global.h"
5
11
12int Sleep(lua_State* L_)
13{
14 int t = luaL_checkinteger(L_, 1);
15 vTaskDelay(pdMS_TO_TICKS(t));
16
17 return 0;
18}
int Sleep(lua_State *L_)
Pause execution for a specified time.
Definition Sleep.h:12