From 81bbeb51eaa4f99c57014efcf1f86a1220689b48 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 21 Feb 2017 16:13:25 +0100 Subject: [PATCH] Add Lua binding to query monotonic time (in microseconds) --- libs/ardour/luabindings.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/ardour/luabindings.cc b/libs/ardour/luabindings.cc index 87ef5a32ab..9e253083c4 100644 --- a/libs/ardour/luabindings.cc +++ b/libs/ardour/luabindings.cc @@ -1933,6 +1933,7 @@ LuaBindings::common (lua_State* L) .addCFunction ("hsla_to_rgba", ARDOUR::LuaAPI::hsla_to_rgba) .addCFunction ("color_to_rgba", ARDOUR::LuaAPI::color_to_rgba) .addFunction ("usleep", Glib::usleep) + .addFunction ("monotonic_time", ::g_get_monotonic_time) .addCFunction ("build_filename", ARDOUR::LuaAPI::build_filename) .addFunction ("new_noteptr", ARDOUR::LuaAPI::new_noteptr) .addCFunction ("sample_to_timecode", ARDOUR::LuaAPI::sample_to_timecode)