diff options
author | Norbert Preining <norbert@preining.info> | 2020-11-24 03:01:06 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-11-24 03:01:06 +0000 |
commit | 55c6d66f61a96ba63cd8c141229843ad2ab42632 (patch) | |
tree | 64fa3f4bc82828c2475a6a25d23a02cb36502b95 /graphics/asymptote/runtime.in | |
parent | f0be59ccfa7046c57199fe35c49e1e8963fcb1a9 (diff) |
CTAN sync 202011240301
Diffstat (limited to 'graphics/asymptote/runtime.in')
-rw-r--r-- | graphics/asymptote/runtime.in | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/graphics/asymptote/runtime.in b/graphics/asymptote/runtime.in index 9740f82dda..27cde40074 100644 --- a/graphics/asymptote/runtime.in +++ b/graphics/asymptote/runtime.in @@ -81,6 +81,7 @@ stringarray2* => stringArray2() #include "lexical.h" #include "process.h" #include "arrayop.h" +#include "seconds.h" #if defined(USEGC) && defined(GC_DEBUG) && defined(GC_BACKTRACE) extern "C" { @@ -92,6 +93,7 @@ stringarray2* => stringArray2() using namespace vm; using namespace camp; using namespace settings; +using namespace utils; #undef OUT #undef IN @@ -1036,11 +1038,12 @@ realarray *_cputime() struct tms buf; ::times(&buf); - array *t=new array(4); - (*t)[0] = ((real) buf.tms_utime)*ticktime; - (*t)[1] = ((real) buf.tms_stime)*ticktime; - (*t)[2] = ((real) buf.tms_cutime)*ticktime; - (*t)[3] = ((real) buf.tms_cstime)*ticktime; + array *t=new array(5); + (*t)[0]=((real) buf.tms_utime)*ticktime; + (*t)[1]=((real) buf.tms_stime)*ticktime; + (*t)[2]=((real) buf.tms_cutime)*ticktime; + (*t)[3]=((real) buf.tms_cstime)*ticktime; + (*t)[4]=utils::totalseconds(); return t; } @@ -1203,3 +1206,8 @@ transform reflect(pair a, pair b) { return reflectabout(a,b); } + +bool isometry(transform t) +{ + return t.isIsometry(); +} |