Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
0551ef2a
Unverified
Commit
0551ef2a
authored
Feb 23, 2023
by
Catherine
Committed by
GitHub
Feb 23, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #22 from YosysHQ/wasi-Abc_Clock
Add WASI support in Abc_Clock
parents
a8f0ef23
f89df808
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
src/misc/util/abc_global.h
+1
-1
No files found.
src/misc/util/abc_global.h
View file @
0551ef2a
...
@@ -334,7 +334,7 @@ static inline abctime Abc_Clock()
...
@@ -334,7 +334,7 @@ static inline abctime Abc_Clock()
#else
#else
#define APPLE_MACH 0
#define APPLE_MACH 0
#endif
#endif
#if (defined(LIN) || defined(LIN64)) && !APPLE_MACH && !defined(__MINGW32__)
#if (defined(LIN) || defined(LIN64)) && !APPLE_MACH && !defined(__MINGW32__)
&& !defined(__wasm)
struct
timespec
ts
;
struct
timespec
ts
;
if
(
clock_gettime
(
CLOCK_THREAD_CPUTIME_ID
,
&
ts
)
<
0
)
if
(
clock_gettime
(
CLOCK_THREAD_CPUTIME_ID
,
&
ts
)
<
0
)
return
(
abctime
)
-
1
;
return
(
abctime
)
-
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment