Objects of the Stopwatch class measure program execution time and return the result in floating-point seconds. The class includes the start, stop, and reset functions familiar to users of a mechanical stopwatch. You can create a different Stopwatch object for each independent program activity, and name each according to the activity you intend to measure. The String package consists of the single class, String, which provides ways to assign, concatenate, and compare character strings. This class also provides methods for substring creation and for vector access to a character string.
Overloaded operators provide ways to assign, concatenate, and compare strings.
New operators provide simple notations for substring creation and vector access into the string. All comparisons are lexicographic with the ordering dependent on the character set in which the string is encoded. An index value of 0 indicates the first character in a String object. The task package provides coroutine support. A coroutine, or task, is a subroutine that can suspend execution to allow other tasks to run.