diff options
Diffstat (limited to 'tapset/timestamp.stp')
-rw-r--r-- | tapset/timestamp.stp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tapset/timestamp.stp b/tapset/timestamp.stp index f8e1ea4e..b71841d4 100644 --- a/tapset/timestamp.stp +++ b/tapset/timestamp.stp @@ -3,14 +3,14 @@ %} // return in milliseconds since epoch -function gettimeofday_ms () %{ +function gettimeofday_ms:long () %{ struct timeval tm; do_gettimeofday (& tm); THIS->__retvalue = (tm.tv_sec * 1000) + (tm.tv_usec / 1000); %} // return in seconds since epoch -function gettimeofday_s () %{ +function gettimeofday_s:long () %{ struct timeval tm; do_gettimeofday (& tm); THIS->__retvalue = tm.tv_sec; |