time - returns the time in seconds
time
time returns the time in seconds, from Epoch (00:00:00 UTC, January 1, 1970) The accurracy is up to a microsecond. time can be used to measure how long time some calculations take. t = time; show( picture( 400, 400, [[1,1,0]] ) ); Place your calculation that should be measured here. t = time - t; t is now set to the time the calculation took. This can be typed on one line. t = time; show( picture( 400, 400, [[1,1,0]] ) ); t = time -t; ans = 0.1363 |