This built-in predicate unifies the number of seconds elapsed since 00:00:00 GMT, January 1, 1970 with the value of the parameter. The current system time will not be changed, use put_time/4 to change the system time.
see also: date/3 get_cpu_time/1 put_date/3 put_time/4 time/4
| Examples | |
| time_elapsed(Val). | the predicate succeeds and the variable Val is unifued with the value 992875601 |
| time_elapsed(99281). | the predicate fails because the number of seconds elapsed since 00:00:00 GMT, January 1, 1970 is larger than the specified value |
| Exceptions | |
| The argument Arg is not an integer | a type_error(integer, Arg) exception is thrown |
| The argument Arg result exceeds the integer range | an evaluation_error(int_overflow) exception is thrown |
| The argument Arg is a negative integer | an evaluation_error(negative, Arg) exception is thrown |