import Time ; // Import the standard Time library // Get the current time int start = time( ) ; // Pause the program until the message is closed alert( "Measuring time..." ) ; // Get the time again int end = time( ) ; // Convert elapsed time (end - start) to seconds int sec = second( end - start ) ; // Display the elapsed time print( sec ) ;