Help with waiting

Is there any way in codea to do a wait or delay function or command? I know that most big programming languages like C/C++ have them, and it would be a real help to me if there was one.

There is but you have to write it yourself. Here is a timer example by Zoyt. It should give you a general idea.

--# Main
-- Timer Example

-- Use this function to perform your initial setup
function setup()
    timer1 = Timer(2,callback)

-- This function gets called once every frame
function draw()
    -- This sets a dark background color 
    background(40, 40, 50)

    -- This sets the line thickness

    -- Do your drawing here

function callback()
   print("This function is called every 2 seconds") 

--# Timer
--Timer by Zoyt via Codea Forums
Timer = class()

function Timer:init(interval,callback)
    self.interval = interval
    self.callback = callback
    self.diffTime = 0
    self.time = 0
    self.occurances = 0

function Timer:update()
    self.time = ElapsedTime - self.diffTime
    if self.time >= self.interval then
        self.occurances = self.occurances + 1
        self.diffTime = ElapsedTime
        self.time = 0
        if type(self.callback) == "function" then
        return true
        return false

I tend to use simpler timers,
eg set t=0 in set up, then in draw I put
t=t + DeltaTime --adds time since last redraw
if t>DelayTime then --etc

if you want to wait until a job is finished, you need coroutines. I explain how to use them for this, here

tween.delay can be useful