retrieve current time in a simpler way