Skip to content

A very simple Erlang NIF module to retrieve the monotonic time from the OS

Notifications You must be signed in to change notification settings

magnetised/c_monotonic_time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Monotonic Time

An Erlang module to retrieve a monotonic time value directly from the OS using a NIF.

I know that Erlang/OTP 18 has fantasic time functions but I needed something that was more consistent with time functions available in C in order to coordinate with an audio port driver.

Usage

$ rebar compile
$ erl -pa ebin
1> c_monotonic_time:microseconds().
7311345180
2> c_monotonic_time:milliseconds().
7316529

About

A very simple Erlang NIF module to retrieve the monotonic time from the OS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published