LIKWID
Time measurement module

Data type definition for Lua time measurement module in the Lua API

Function definitions for Lua time measurement module in the Lua API

getCpuClock()

Returns the nominal clock speed

Direction Data type(s)
Input Parameter None
Returns Clock speed in Hz

getCycleClock()

Returns the clock speed of the time stamp counter

Direction Data type(s)
Input Parameter None
Returns Cycle clock speed in Hz

startClock()

Start the TSC clock

Direction Data type(s)
Input Parameter None
Returns Current timestamp

stopClock()

Stop the TSC clock

Direction Data type(s)
Input Parameter None
Returns Current timestamp

getClockCycles(start, stop)

Return the amount of cycles between start and stop timestamps

Direction Data type(s)
Input Parameter
start Start timestamp
stop Stop timestamp
Returns Amount of cycles between start and stop

getClock(start, stop)

Return the time in seconds between start and stop timestamps

Direction Data type(s)
Input Parameter
start Start timestamp
stop Stop timestamp
Returns Time in seconds between start and stop

sleep(usecs)

Sleep for specified amount of microseconds

Direction Data type(s)
Input Parameter
usecs Sleep for seconds
Returns Remaining time to sleep. >0 if sleep is interrupted

*/

/*!