Ancient history

How many years ago was the beginning of time?

There is no "beginning of time". Time is a human construct created for the purpose of organising events. In the context of the universe, there is no concept of a starting point.