Skip to content

Commit

Permalink
fixup! Add the Timers module to measure real-time and cpu-time
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Jan 19, 2018
1 parent 4846b04 commit dd07bff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/timers/windows.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ end
kernel_time = Ref{FileTime}()
user_time = Ref{FileTime}()

ccall(:GetProccessTimes, Cint, (HANDLE, Ref{FileTime}, Ref{FileTime}, Ref{FileTime}, Ref{FileTime}),
ccall(:GetProcessTimes, Cint, (HANDLE, Ref{FileTime}, Ref{FileTime}, Ref{FileTime}, Ref{FileTime}),
proc, creation_time, exit_time, kernel_time, user_time)
return maketime(kernel_time, user_time)
return maketime(kernel_time[], user_time[])
end

0 comments on commit dd07bff

Please sign in to comment.