NAG Library Chapter Introduction

X05 (time)
Date and Time Utilities


Scope of the Chapter

This chapter provides routines to obtain the current real time, and the amount of processor time used.

Background to the Problems

Real Time

Routines are provided to obtain the current time in two different formats, and to compare two such times.

Processor Time

A routine is provided to return the current amount of processor time used. This allows the timing of a particular routine or section of code.

Recommendations on Choice and Use of Available Routines

x05aaf returns the current date/time in integer format.
x05abf converts from integer to character string date/time.
x05acf compares two date/time character strings.
x05baf returns the amount of processor time used.

Routines Withdrawn or Scheduled for Withdrawal

© The Numerical Algorithms Group Ltd, Oxford, UK. 2017