Example: How to calculate time which is needed for the script to be executes on Logic Machine 2

Script

Source code    
  1. local ts, tus = os.microtime()
  2. -- your script goes here
  3. log(os.udifftime(ts, tus))