better time_stamp
moved the function inline, otherwiser the value would be cached dont know why