setNanoSeconds()

The method sets the nanoseconds.

Synopsis

int time.setNanoSeconds(int nano);

Parameter

Parameter Description
nano The nanoseconds.

Description

The method sets the nanoseconds. The method does not change the date.

Return Value

The method returns -1 in case of a value range error and otherwise 0.

Example

main()
{
  time t;
  DebugN("Set the nanoseconds:", t.setNanoSeconds(5000000000));
}

Assignment

Time function

Availability

UI,CTRL