Documentation Center

  • Trial Software
  • Product Updates

prog::ntime

Hardware independent time unit

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

prog::ntime()

Description

prog::ntime() returns a time unit that represents roughly the speed of the current machine for typical library programs.

prog::ntime can be used to perform timing tests of typical MuPAD® library programs on different machines.

prog::ntime uses a mix of different operations to calculate the time factor.

One call to prog::ntime takes about 1.5 seconds.

A real timing value must be divided by the value of prog::ntime, to get a machine independent timing value.

Examples

Example 1

On this machine, a timing must be divided by the value of prog::ntime, then the timing is comparable with the timing of the same code on another machine, also divided by the value of prog::ntime on the other machine:

prog::ntime()
                         0.7052155095 

Return Values

Floating point number

See Also

MuPAD Functions

Was this topic helpful?