Project

General

Profile

Feature #1583

New fn ElapsedTimeFrom?

Added by John Abbott about 3 years ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
enhancing/improving
Target version:
Start date:
19 Mar 2021
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

Now that we have both CpuTime and ElapsedTime, should we also have ElapsedTimeFrom?


Related issues

Related to CoCoA-5 - Bug #1553: Timing SystemCommandClosed2020-12-17

History

#1 Updated by John Abbott about 3 years ago

Currently CpuTime and ElapsedTime return rational numbers (representing seconds).

There is a risk that if someone uses ElapsedTimeFrom with argument corresponding to a CpuTime value then a "meaningless" value may be produced.
One way to avoid this would be to use tags or records to encapsulate the values from CpuTime and ElapsedTime.... but that would not be backward compatible.

#2 Updated by Anna Maria Bigatti about 3 years ago

  • Related to Bug #1553: Timing SystemCommand added

#3 Updated by John Abbott over 2 years ago

  • Target version changed from CoCoA-5.4.0 to CoCoA-5.4.2

#4 Updated by John Abbott about 1 month ago

I'm tempted to reject this. Yes, there is the risk mentioned in the description, but it is not so serious -- if necessary, we can improve the documentation.
Currently, I cannot think of any great use for ElapsedTime... I suppose I must have added it for a reason...

Also available in: Atom PDF