Skip to content

Commit

Permalink
remove fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGraey committed Mar 29, 2019
1 parent bf3c43f commit eca3399
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions assembly/wasa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,7 @@ export class Date {
export class Performance {
static now(): f64 {
let time_ptr = memory.allocate(8);
if (clock_res_get(clockid.MONOTONIC, time_ptr) != errno.SUCCESS) {
clock_res_get(clockid.REALTIME, time_ptr);
}
clock_res_get(clockid.MONOTONIC, time_ptr);
let res_ts = load<u64>(time_ptr);
memory.free(time_ptr);
return res_ts as f64;
Expand Down

0 comments on commit eca3399

Please sign in to comment.