Googles appar
Huvudmeny

Post a Comment On: cbloom rants

"10-01-11 - More Reliable Timing on Windows"

2 Comments -

1 – 2 of 2
Blogger Branimir Karadžić said...

I'm just curious, is there benefit of using "template " vs uint64 GetFuncTime( void (*pfunc)() ) or just being cplusplusey?

October 2, 2011 at 12:10 PM

Blogger cbloom said...

Works with other func types. In particular you don't have to get the __cdecl or whatever nonsense right.

In practice I use a version that also takes templated args and passes them through.

You're welcome to change it to void *pfunc if that works for you.

October 2, 2011 at 12:32 PM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.