aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/nocscript/gen_basic_funcs.py
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/rfnoc/nocscript/gen_basic_funcs.py')
-rwxr-xr-xhost/lib/rfnoc/nocscript/gen_basic_funcs.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/host/lib/rfnoc/nocscript/gen_basic_funcs.py b/host/lib/rfnoc/nocscript/gen_basic_funcs.py
index cd024af5c..fec6b04ad 100755
--- a/host/lib/rfnoc/nocscript/gen_basic_funcs.py
+++ b/host/lib/rfnoc/nocscript/gen_basic_funcs.py
@@ -26,7 +26,8 @@ from mako.template import Template
#
INCLUDE_LIST = """
#include <boost/math/special_functions/round.hpp>
-#include <boost/thread/thread.hpp>
+#include <chrono>
+#include <thread>
"""
FUNCTION_LIST = """
CATEGORY: Math Functions
@@ -251,7 +252,7 @@ CATEGORY: Execution Control
BOOL SLEEP(DOUBLE)
{
int ms = ${args[0]} / 1000;
- boost::this_thread::sleep(boost::posix_time::milliseconds(ms));
+ std::this_thread::sleep_for(std::chrono::milliseconds(ms));
${RETURN}(true);
}
"""