To get the "wall clock" time, use "_ampl_elapsed_time". This gives the current time on the computer's clock minus the time that was on the clock when AMPL started.
If you have further problems with timing, please include in your posting the platform (Windows, Linux, macOS) that you are running on, and the version of AMPL (output of "option version;") that you are using.
Bob Fourer
am...@googlegroups.com
=======