File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 392
392
return caml_alloc_times ( t . user / 1e6 , t . system / 1e6 ) ;
393
393
} else {
394
394
var t = performance . now ( ) / 1000 ;
395
- return caml_alloc_times ( t , t ) ;
395
+ return caml_alloc_times ( t , 0 ) ;
396
396
}
397
397
} ,
398
398
gmtime : ( t ) => {
Original file line number Diff line number Diff line change 288
288
(local.set $buffer (call $get_buffer ))
289
289
(local.set $res
290
290
(call $clock_time_get (i32.const 2 ) (i64.const 1 ) (local.get $buffer )))
291
+ (if (i32.eq (local.get $res ) (i32.const 8 ))
292
+ (then
293
+ (local.set $res
294
+ (call $clock_time_get
295
+ (i32.const 0 ) (i64.const 1 ) (local.get $buffer )))))
291
296
(if (local.get $res )
292
297
(then
293
298
(call $caml_handle_sys_error
Original file line number Diff line number Diff line change 426
426
(local.set $res
427
427
(call $clock_time_get
428
428
(i32.const 2 ) (i64.const 1 ) (local.get $buffer )))
429
+ (if (i32.eq (local.get $res ) (i32.const 8 ))
430
+ (then
431
+ (local.set $res
432
+ (call $clock_time_get
433
+ (i32.const 0 ) (i64.const 1 ) (local.get $buffer )))))
429
434
(if (local.get $res )
430
435
(then
431
436
(call $caml_unix_error
You can’t perform that action at this time.
0 commit comments