local begin = os.clock() -- Your code snippet print(string.format("total time:%.2fms\n", ((os.clock() - begin) * 1000)))