# cputime

## Purpose

Elapsed CPU time.

## Synopsis

    cputime

## Description

`cputime` returns the CPU time in seconds that has been used by the MATLAB process since MATLAB started.

The return value can overflow the internal representation and wrap around.

## Examples

For example

    t = cputime; surf(peaks(40)); e = cputime-t

    e =
         0.4667

returns the CPU time used to run `surf(peaks(40))`.

## See Also

    clock, etime, tic, toc

(c) Copyright 1994 by The MathWorks, Inc.