There is indeed no such function, will be added with the next update (it will be server.getGameTimeSpeed() then) However, as a workaround you could retrieve the value from the server.properties by using the getOption() function, e.g.:
Java
String val = getServer().getOption("settings_time_speed");