 Elapsed real time was 1.15 seconds.The following is the source code of the application nextPrimeNumber which was used in the above example.// nextPrimeNumber.c

int isPrimeNumber(unsigned long int n) {

int main(int argc, char *argv[]) {

POSIX functions codice_1 and codice_2 can be used to get CPU time consumed by any process in a POSIX environment.